WordPress.org

Ready to get started?Download WordPress

Forums

Social
Missing span in h3. Probably. (3 posts)

  1. MedniLedved
    Member
    Posted 7 months ago #

    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..

    originally:

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

    working:

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

    Thank you

    It can be found e.g. here:
    http://vernermotor.eu/airshows-september-2013-olomouc-jehnedi-jihlava/

    http://wordpress.org/plugins/social/

  2. MedniLedved
    Member
    Posted 6 months ago #

    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>',
    $comment_form);
  3. franukis
    Member
    Posted 1 month ago #

    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!

Reply

You must log in to post.

About this Plugin

About this Topic