• Resolved BeeCee

    (@csigncsign)


    Hi,

    I use a premium theme from Kriesi with the avia framework. I’m not sure, where and how to add your suggested code in the theme file.

    I have found in my comments.php this part:


    if(comments_open()){
    echo "<div class='comment_container ".avia_layout_class('entry',false)." units $indent'>";
    echo "<h3 class='miniheading'>".__('Leave a Reply','avia_framework')."</h3>";
    echo "<span class='minitext'>".__('Want to join the discussion?
    Feel free to contribute!','avia_framework')."</span>";
    comment_form();
    echo "</div>";
    }

    but my PHP is too bad, so I don’t know how to implement there the example code in the theme’s file.

    Any help appreciated, thanks!

    http://wordpress.org/plugins/custom-comment-form-title/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Derek Rippe

    (@dwrippe)

    Hi csigncsign,

    Try swapping out just the code that outputs the <h3> tags, like so:

    [Irreparably mangled code moderated. Please post code or markup between backticks or use the code button. Or better still – use a pastebin.]

    Give that a try and see what happens.

    Plugin Author Derek Rippe

    (@dwrippe)

    Apparently wordpress.org didn’t like the code I pasted in. Let me try that again:

    if(comments_open()){
    echo "<div class='comment_container ".avia_layout_class('entry',false)." units $indent'>";
    
    $post_id = get_the_ID();
        if ( !empty( $post_id ) ) {
            $arg = get_post_meta( $post_id, 'ccft_post_comment_title', true );
        }
        if ( empty( $arg ) ) {
            $ccft_admin_options = get_option( 'custom_comment_form_title' );
            $arg = esc_attr( $ccft_admin_options['default_title'] );
        }
    echo '<h3 class='miniheading'>' . $arg . '</h3>';
    
    echo "<span class='minitext'>".__('Want to join the discussion?
    Feel free to contribute!','avia_framework')."</span>";
    comment_form();
    echo "</div>";
    }
    Plugin Author Derek Rippe

    (@dwrippe)

    I am marking this topic resolved, as I am confident I have provided the correct solution and the topic creator has been unresponsive for 2 months.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to tweak comments.php?’ is closed to new replies.