WordPress.org

Ready to get started?Download WordPress

Forums

The Bootstrap
Cannot find (7 posts)

  1. anyway
    Member
    Posted 11 months ago #

    Hi,

    I'm searching for the template, where I can find the following code:

    <h3 id="reply-title" class="comment-reply-title">

    I want to change the <h3> tag of "Leave a reply" into <p> for SEO purposes. I have searched all templates, functions.php and scripts 3 times and cannot find it.

    Thanks for help!

  2. Brad Davis
    Member
    Posted 11 months ago #

    The comment templates are handled by functions contained in the functions.php file, have you had a dig around in there?

  3. anyway
    Member
    Posted 11 months ago #

    Yes, I had... a couple of times. No <h3> in there.

    Thanks for the quick reply!

  4. anyway
    Member
    Posted 11 months ago #

    Okay, I've checked again. Inside the functions-php is definitely no h3. All I can find is:

    'title_reply' => '<legend>' . __( 'Leave a reply', 'the-bootstrap' ) . '</legend>',

    Where the magic happens?

  5. Brad Davis
    Member
    Posted 11 months ago #

    Will be working on a Bootstrap theme this week so I will check it out as soon as I can, sorry I haven't had a chance to look further into it yet.

  6. anyway
    Member
    Posted 11 months ago #

    Thank you for coming back, Brad! In the meantime I found out, that the element is hardcoded in the wp-includes/comment.php file, but after extensive research I still have no solution for that. The h3 tag is not part of the array.

  7. Brad Davis
    Member
    Posted 11 months ago #

    Best option in that case would be to make your own custom comment.php template file and/or function.php in your child theme.

    Helpful resouces:
    - Function/Reference/comment form
    - function Reference/wp- list comments

Reply

You must log in to post.

About this Theme

About this Topic

Tags

No tags yet.