-
AuthorPosts
-
September 19, 2019 at 9:41 pm #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
September 22, 2019 at 9:24 pm #1140770October 7, 2019 at 5:33 pm #1145855Hey 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):
October 8, 2019 at 5:19 am #1145996Hi,
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,
MikeOctober 8, 2019 at 3:36 pm #1146199Thank you!
Can you maybe tell me too in which file this code is?
October 9, 2019 at 5:09 am #1146360Hi,
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 -
AuthorPosts
- You must be logged in to reply to this topic.