Clear Line theme

Vatuma Support » Clear Line theme129

Leave a reply (3 posts)

About This Topic

Tags

  1. Anna
    Member
    Posted 5 months ago
    #

    Hi Ivan
    I would like to know if there's a way to custom "Leave a reply" text in the comment form. I need it with 16px font-size, or inherited from the post and comment text font size (16px).
    There's no CSS for that text and no direct input in PHP files.
    I guess it's generated by default with h3 font-size by the call <?php comment_form($args); ?>, but I don't know how to manage it.
    I've tried to make a class called "reply-title" and similar, but then I don't know how to apply it to a reply-title call... I could call the class with a div but I think I need to specify the reply-title from the comment form.
    In theme options I have h3 font size at 14 px, but I can't change it because I have another type of h3 writings that's good with that size, tagged manually not with a class.
    Thanks

  2. Ivan
    Key Master
    Posted 5 months ago
    #

    in comments.php:

    $args= array(
       'fields' => ... ,
       'comment_field' => '.... ,
       'title_reply' => 'My Leave Reply Title',
    );

    'My Leave Reply Title' will appear inside H3 anyway, so you can try something like this:

    $args= array(
       ...
       'title_reply' => '<span class="reply-title"> My Leave Reply Title</span>',
    );

    and than define css in style.css

    h3 .reply-title{
       ...
    }
  3. Anna
    Member
    Posted 5 months ago
    #

    Great, it works!
    Thank you very much... I've lost my afternoon, but you saved my evening!

Reply

You must log in to post.

Vatuma Support » Clear Line theme129