Viewing 5 replies - 1 through 5 (of 5 total)
  • same problem ??

    in loop.php, edit this line, and include all five parameters of ‘comments_popup_link()` where the fifth parameter sets the text to be output if comments are closed:

    <span class="comments-link"><?php comments_popup_link(__('Leave a comment', 'clearstyle'), __('1 Comment', 'clearstyle'), __('% Comments', 'clearstyle')); ?></span>

    https://codex.www.ads-software.com/Function_Reference/comments_popup_link

    if this does not help, please post a link to your site.

    Thread Starter EvaB

    (@evab-1)

    Hi, I tried to do as you said, but it does not seem to work (or maybe I misunderstood). This is the site link: https://www.aegee-maastricht.org/wordpress/
    The ‘comments off’ I’m referring to is the one under the page title (Welcome to AEGEE Maastricht in case of the homepage).
    Thanks for the help!

    thanks for the link ??

    look into page.php;

    and change the suggested line:

    <span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'clearstyle' ), __( '1 Comment', 'clearstyle' ), __( '% Comments', 'clearstyle' ) ); ?></span>

    to:

    <span class="comments-link"><?php comments_popup_link(__('Leave a comment', 'clearstyle'), __('1 Comment', 'clearstyle'), __('% Comments', 'clearstyle'),'',''); ?></span>
    Thread Starter EvaB

    (@evab-1)

    Hi again, thank you so much, it worked like a charm, I simply replaced it with the following, and the ‘Comments off’ disappeared!
    <span class=”comments-link”><?php

    if ( comments_open() ) :
      echo '<p>';
      comments_popup_link( 'No comments yet', '1 comment', '% comments', 'comments-link', 'Comments are off for this post');
      echo '</p>';
    endif;
    ?></span>

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Theme: Clear Style] How do you remove "Comments off" under the header?’ is closed to new replies.