Support » Plugin: Social » Missing span in h3. Probably.

  • Hello,

    I just started using Social and my header of it is crossed with a line.
    I have found out, that it can be resolved when h3 content would be wrapped in span, which has proper background settings in css.
    However I’m unable to find this piece of code in php/js files..


    ...<div id="respond" class="comment-respond">
    <h3 id="reply-title" class="comment-reply-title">
    Post a Comment


    ...<div id="respond" class="comment-respond">
    <h3 id="reply-title" class="comment-reply-title">
    <span>Post a Comment</span>

    Thank you

    It can be found e.g. here:

Viewing 2 replies - 1 through 2 (of 2 total)
  • So I have found out line in form.php which should be probably handling that, but somehow don’t. Any ideas?

    line 106:

    return preg_replace
    ('/<h3 id="reply-title">(.+)<\/h3>/',
    '<h3 id="reply-title"><span>$1</span></h3>',

    Hi MedniLedved,

    Sorry for the late reply. I’ve just found the same problem, and found the solution. I did this:

    -Edit /wp-includes/comment-template.php
    -Find this line:

    <h3 id="reply-title" class="comment-reply-title"><?php comment_form_title( $args['title_reply'], $args['title_reply_to'] ); ?><small><?php cancel_comment_reply_link( $args['cancel_reply_link'] ); ?></small></h3>

    -Replace it with:

    <h3 id="reply-title" class="comment-reply-title"><span><?php comment_form_title( $args['title_reply'], $args['title_reply_to'] ); ?></span> <small><?php cancel_comment_reply_link( $args['cancel_reply_link'] ); ?></small></h3>

    And that’s it 🙂

    Hope it helps!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Missing span in h3. Probably.’ is closed to new replies.