• I am using the theme Expressions, and version 3.6.
    My pages have items such as “No Comments Yet”, “Leave a Reply”, and a comment box.
    I want to remove all of that from all pages. I am going through everything, but I am not able to find where I can control these items.
    Do I need a different theme, or is there something I am missing [very likely]?
    I would most appreciate any and all assistance.

Viewing 7 replies - 1 through 7 (of 7 total)
  • You can turn off comments under Settings > Discussion, and then on individual pages/posts under Quick Edit – uncheck “allow comments.”

    If something is still visible on the page, you can generally hide that using CSS – which would be theme-specific, so you could post on the theme’s forum here:

    https://www.ads-software.com/support/theme/expressions

    Thread Starter inventorgeorge

    (@inventorgeorge)

    Hello:
    That “allow comments” IS unchecked, and still I get the items above.
    also curious, On most pages the postings I put into the text box show as they should. On one page, nothing I do causes the text to show up on the page. All settings are the same for this “odd” page, and yet it is missing the comment related items, as well as any text I put in.

    Unfortunately I have no experience with using CSS, thatr will involve reading to get up to speed there.

    Without seeing your site, no way to offer much additional help.

    Thread Starter inventorgeorge

    (@inventorgeorge)

    The site is https://www.univent.org/inventonomics
    Right now, the theme is Alexandria, but I have tried several themes, all having the same result.

    That doesn’t look like comments are off, but in any case, this CSS should hide that –

    .comments-area {
       display: none;
    }

    That CSS should be added to a child theme or custom CSS – if the theme does not have custom CSS option, you can add it via a custom CSS plugin.

    Don’t modify theme files – as your changes will be lost when the theme is updated.

    Hi inventorgeorge,

    This is theme specific because themes define how comments are displayed. I downloaded the theme your using and to remove the No comments yet you will need to modify the single.php file in the theme root directory.

    On line 42 you will find:
    <?php if( $post_icons_on == true ) {
    echo ‘<div class=”comments-wrap-icons”>’;
    } else {
    echo ‘<div class=”comments-wrap-no-icons”>’;
    }
    comments_template(”, true);
    echo ‘</div>’;

    This is where the comments template is included. Remove line 42 through 48.

    You could also modify the page.php file to make sure it is removed on pages but the developer is actually checking if comments are enabled before including the file so it shouldn’t need to be removed but just in case find line 54 and remove:

    <?php if(comments_open()) comments_template('', true); ?>

    PLEASE NOTE: If you update the theme these changes will be overwritten so you might want to look into creating a child theme but it sounds like your frustrated and just want it removed all together. Hope this helps and good luck.

    As it is right now on this page
    https://www.univent.org/inventonomics/

    <h4 class="comments-title">No Comments Yet</h4>
    
    <div id="respond" class="comment-respond">
    	<h3 id="reply-title" class="comment-reply-title">
    		Leave a Reply
    	</h3>
    	<form></form>
    </div><!-- #respond -->

    And this is the theme’s comment template
    https://themes.svn.www.ads-software.com/expressions/1.28.4/comments.php

    You can see clearly that the if(comments_open()) must be true for that markup to show up. So obviously, the not allow comments setting on individual post/page is still on.

    You can turn off comments under Settings > Discussion, and then on individual pages/posts under Quick Edit – uncheck “allow comments.”

    There are 2 places to set not allow comments, one globally onward which is set in General > Discussion https://codex.www.ads-software.com/Settings_Discussion_Screen

    and one individually set in post/page editing screen. See this https://codex.www.ads-software.com/Comments_in_WordPress#Turning_on_Comments_for_a_Single_Post_or_Page

    Once that’s done, the “No Comments Yet” text won’t be seen.

    The “Leave a Reply” text is actually part of comment form pulling from the default. https://core.trac.www.ads-software.com/browser/tags/3.6/wp-includes/comment-template.php#L1644

    You could see that the form is wrapped in if ( comments_open() ), so this confirms that the comment setting is still on to accept comment.

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