Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #988486
    steevka
    Participant

    Hey Themeco!

    Right now, comments are not visible on any page.

    I am interested in having them enabled but only usable/visible to users who are logged in. So if someone isn’t logged in, they don’t even know they exist.

    Please let me know what steps I should take to make this possible 🙂

    Thanks for always being awesome! I’ll post a second comment with my site and login.

    #988492
    steevka
    Participant
    This reply has been marked as private.
    #988979
    Rad
    Moderator

    Hi there,

    Thanks for writing in.

    I went ahead and enabled this option Users must be registered and logged in to comment at Admin > Settings > Discussion.

    Of of comment/discussion settings will be applied on newly added posts only. If you wish to allow comment on old posts, then you’ll have to edit them one by one and allow comment. You can do that by going to Screen Options on top of your page then toggled on Discussions and scroll down and find Discussions section. Then, enable it 🙂

    Cheers!

    #991626
    steevka
    Participant

    Thanks! This worked great, and I found a plugin that hides comments from anyone not logged in.

    ONE more thing, sorry! I can’t seem to get the comment section visible on the home page. Any ideas?

    Every other page works fine after I go under the Xtheme settings for that specific page and enable the comments.

    #991893
    Rue Nel
    Moderator

    Hello There,

    Thanks for the updates! By default, the page template Blank – No Container | Header, Footer will not display any comments. If you want to display the comments, please follow the following steps below:
    1] Using Notepad or TextEdit or Sublime Text or any text editor, please create a new file in your local machine.
    2] Insert the following code into that new file

    <?php
    
    // =============================================================================
    // VIEWS/INTEGRITY/TEMPLATE-BLANK-4.PHP (No Container | Header, Footer)
    // -----------------------------------------------------------------------------
    // A blank page for creating unique layouts.
    // =============================================================================
    
    ?>
    
    <?php get_header(); ?>
    
      <div class="x-main full" role="main">
    
        <?php while ( have_posts() ) : the_post(); ?>
    
          <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
            <?php x_get_view( 'global', '_content', 'the-content' ); ?>
            <?php x_get_view( 'global', '_comments-template' ); ?>
          </article>
    
        <?php endwhile; ?>
    
      </div>
    
    <?php get_footer(); ?>

    3] Save the file named as template-blank-4.php
    4] Upload this file to your server in the child theme’s folder
    wp-content/themes/x-child/framework/views/integrity/

    Please let us know if this works out for you.

    #994003
    steevka
    Participant

    Got it!!! Thanks again! Y’all the best

    #994070
    Thai
    Moderator

    You’re most welcome 🙂

    If you need anything else please let us know.

  • <script> jQuery(function($){ $("#no-reply-988486 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>