Tagged: x
-
AuthorPosts
-
March 3, 2017 at 6:30 pm #1393877
mattbeepsParticipantI would like to make use of Facebook Comments on a page. It works fine on other posts pages using the default template. However, when I use it on a page that has a template type of “Blank Container No Header No Footer” it will not show up. How can I make it show up? I am using the page as a landing page and I don’t want any header footers on the page which is why I’m using the template type.
March 4, 2017 at 3:11 am #1394236
ChristopherModeratorHi there,
By default blank templates don’t display comment.
Because this requires a template change, I’d advise that you setup a child theme. This allows you to make code changes that won’t be overwritten when an X update is released. After your child theme is setup, please review how we recommend making template changes in Customization Best Practices.
Copy template-blank-3.php from framework/views/Stack and put it in the same path inside child theme. Please insert following code :
<?php x_get_view( 'global', '_comments-template' ); ?>Just below this line of code :
<?php x_get_view( 'global', '_content', 'the-content' ); ?>For example , if you’re using icon stack, your new code would be :
<?php // ============================================================================= // VIEWS/ICON/TEMPLATE-BLANK-3.PHP (Container | No Header, No Footer) // ----------------------------------------------------------------------------- // A blank page for creating unique layouts. // ============================================================================= ?> <?php x_get_view( 'global', '_header' ); ?> <?php x_get_view( 'global', '_slider-above' ); ?> <?php x_get_view( 'global', '_slider-below' ); ?> <div class="x-main full" role="main"> <?php while ( have_posts() ) : the_post(); ?> <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> <div class="entry-wrap"> <div class="x-container max width"> <?php x_get_view( 'global', '_content', 'the-content' ); ?> <?php x_get_view( 'global', '_comments-template' ); ?> </div> </div> </article> <?php endwhile; ?> </div> <?php x_get_view( 'icon', '_template-blank-sidebar' ); ?> <?php x_get_view( 'global', '_footer', 'scroll-top' ); ?> <?php x_get_view( 'global', '_footer' ); ?>Hope it helps.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1393877 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
