• Resolved nguyenvanvinh1131992

    (@nguyenvanvinh1131992)


    Hi admin!
    There is still a place where I can’t customize it. Specifically, Reply-Title in WP-Content / Plugins / Jetpack / Modules / Comments / Comments.php files.
    I changed the code:
    <h3 id = “reply-title” class = “Comment-Reply-Title”> <? php comment_form_title (esc_html ($ params [‘greeting’]), esc_html ($ params [‘greeting_reply’]); ?>
    <small> <? php cancel_comment_reply_link (esc_html __ (‘Cancel Reply’, ‘jetpack’)); ?> </ small>
    </ h3>

    Into code:
    <p id = “reply-title” class = “Comment-Reply-Title”> <? php comment_form_title (esc_html ($ params [‘greeting’]), esc_html ($ params [‘greeting_reply’]); ?>
    <small> <? php cancel_comment_reply_link (esc_html __ (‘Cancel Reply’, ‘jetpack’)); ?> </ small>
    </ p>

    To avoid duplication <H3> for multiple posts. However, after I saved it, the result remained unchanged. The interface on the Web site still displays “Reply-Title” as <h3>. How do I transfer “Reply-Title” to <p>?
    I appreciate the help of the admin. Thanks very much!!!

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor Dan (a11n)

    (@drawmyface)

    Hi there

    That heading markup will only be used if you have Jetpack Comments enabled:

    https://jetpack.com/support/comments/

    Since you don’t, the code used will be coming from the core WordPress files instead.

    Hope that helps!

    Thread Starter nguyenvanvinh1131992

    (@nguyenvanvinh1131992)

    Hello admin.

    After I enable jetpack comments, then <h3> has not been converted to <p>. After it if I go to WP-Content / Plugins / Jetpack / Modules / Comments / Comments.php to change <h3> to <p> as above. But it makes the plugin defective at line 166 (error information
    ================
    There are E_Parse errors at line 166 in File: / Home / meothanh / public_html / wp-content / plugins / jetpack / modules / comments / comments.php. Announcement error: syntax error, unwanted '"]) [^'" '(t_constant_encapsed_string), waiting') ').
    What I want only is to switch <H3> to <p>, not matter what use of the form. Does Admin have a solution to?
    Add code line 166: Return Preg_Replace ('#src = ([[""] [^ "] + 1 #', 'src = 1'. Esc_URL (set_URL_scheme ($ this-> photon_avatar ($ Foreign_avatar, $ size), 'HTTPS')). '1', $ Avatar);
    Thread Starter nguyenvanvinh1131992

    (@nguyenvanvinh1131992)

    I have solved the problem using PHP code. Thanks Admin Feedback!
    add_filter( ‘comment_form_defaults’, ‘custom_reply_title’ );
    function custom_reply_title( $defaults ){
    $defaults[‘title_reply_before’] = ‘<span id=”reply-title” class=”h4 comment-reply-title”>’;
    $defaults[‘title_reply_after’] = ‘</span>’;
    return $defaults;
    }

    Anonymous User 18700194

    (@anonymized-18700194)

    Excellent, I’m glad that you got this resolved.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How to edit wp-content/plugins/jetpack/modules/comments/comments.php file?’ is closed to new replies.