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

    (@dwrippe)

    Hi Ovidiu,

    Sorry for the delayed response – I was never alerted to your post on here!

    I’ll look into this issue further and report back. If I need to make an update to the plugin, I will do so.

    Thanks!

    Plugin Author Derek Rippe

    (@dwrippe)

    Ovidiu,

    Did you install the plugin, or did you enter custom code into your comments.php file because your theme isn’t using the comment_form() function?

    In my testing, both with using the plugin and using the custom code in the comments.php file, I’m unable to get the Comment Form title to display on a post with closed comments.

    Do you have an example that I can see?

    Thread Starter Ovidiu

    (@ovidiu)

    What I meant was that instead of inserting this code you provide in the FAQ:

    <?php
        $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>' . $arg . '</h3>';
    ?>

    I modified the last line to read:

    if ( comments_open() ) {echo '<h3 class="action-call">' . $arg . '</h3>';}

    Not sure why but without that modification the h3 tag was showing even on posts with disabled comments. Might be my theme though, just wanted to share that.

    Plugin Author Derek Rippe

    (@dwrippe)

    Well I am glad you were able to get it working.

    What theme are you using, by chance? I am still curious as to why it would be behaving differently.

    Thread Starter Ovidiu

    (@ovidiu)

    Its a custom coded theme. Someone made it for this particular page and I had to step in and do some mods to it hence me saying its very possible that I messed it up.

    But thanks for checking and confirming its not a fault of the plugin.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘a little tweak’ is closed to new replies.