Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1140047

    Hey guys,

    in which file can I edit this “H3” subhead into a normal “div” which is a part of the comments section?
    <h3 id="reply-title" class="comment-reply-title"><span id="schreibe-einen-kommentar-antworten-abbrechen">Schreibe einen Kommentar <small><a rel="nofollow" id="cancel-comment-reply-link" href="/diy-badekugel-rezepte/badekugeln-mit-lavendel-entspannt-aufatmen/#respond" style="display:none;">Antworten abbrechen</a></small></span></h3>

    Thanks for help!

    Best regards

    #1140770

    Hey coolicious,
    Sorry for the late reply, I’m not sure I’m looking at the correct H3 I found “Leave a Reply”
    2019-09-22-152001
    in this case please edit: \enfold\comments.php
    lines 186 & 163, look for text:

    $default_heading = 'h3';

    in both cases.

    Best regards,
    Mike

    #1145855

    Hey Mike,

    no, this one I changed without help. There is another H3 in the code:

    <h3 id="reply-title" class="comment-reply-title">Schreibe einen Kommentar <small><a rel="nofollow" id="cancel-comment-reply-link" href="/diy-badekugel-rezepte/rezept-starke-badekugeln-fuer-einen-starken-kreislauf/#respond" style="display:none;">Antworten abbrechen</a></small></h3>

    You can find it here (look at the private content):

    #1145996

    Hi,
    Thanks for the feedback, I have found that this is not from the theme but WordPress core, please use this function to change, just add to the end of your functions.php file in Appearance > Editor:

    add_filter( 'comment_form_defaults', 'custom_reply_title' );
    function custom_reply_title( $defaults ){
      $defaults['title_reply_before'] = '<span id="reply-title" class="comment-reply-title">';
      $defaults['title_reply_after'] = '</span>';
      return $defaults;
    }

    Best regards,
    Mike

    #1146199

    Thank you!

    Can you maybe tell me too in which file this code is?

    #1146360

    Hi,
    Sorry, I don’t know, it is in the WordPress core, once I found this out I stopped looking for it.
    You would not want to change this directly because you would have to make the edit with every WordPress update, this is why WordPress created “filters” like above.
    Shall we close this then?

    Best regards,
    Mike

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.