Tagged: x
-
AuthorPosts
-
May 12, 2016 at 4:01 pm #988486
steevkaParticipantHey 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.
May 12, 2016 at 4:02 pm #988492
steevkaParticipantThis reply has been marked as private.May 12, 2016 at 9:28 pm #988979
RadModeratorHi 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!
May 14, 2016 at 5:54 pm #991626
steevkaParticipantThanks! 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.
May 15, 2016 at 12:59 am #991893
Rue NelModeratorHello 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.
May 16, 2016 at 12:25 pm #994003
steevkaParticipantGot it!!! Thanks again! Y’all the best
May 16, 2016 at 1:00 pm #994070
ThaiModeratorYou’re most welcome 🙂
If you need anything else please let us know.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-988486 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
