Tagged: x
-
AuthorPosts
-
September 23, 2016 at 4:32 pm #1188382
Johannes GParticipantHello,
I need to enable facebook comments on this page: https://cyclegrinder.com (no-container, no header, with footer)
I got the beneath. Please help me! Its a little urgent.
My best regards from Berlin
Johannes<?php // ============================================================================= // VIEWS/RENEW/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(); ?>September 23, 2016 at 7:48 pm #1188618
FriechModeratorHi Johannes,
Thanks for writing in! Can you confirm you install the Facebook Comments extension from the Addons panel? If not, please do so. Else provide us with login credentials (wp-admin and FTP) in private reply, so we can take a closer look.
Cheers!
September 26, 2016 at 12:14 pm #1191109
Johannes GParticipantThis reply has been marked as private.September 26, 2016 at 12:16 pm #1191114
Johannes GParticipantThis reply has been marked as private.September 26, 2016 at 12:46 pm #1191147
ThaiModeratorHi There,
You have to copy the
template-blank-8.phpfile to/wp-content/themes/x-child/framework/views/renewwith the following code:<?php // ============================================================================= // VIEWS/RENEW/TEMPLATE-BLANK-8.PHP (No Container | No Header, 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(); ?>> <?php x_get_view( 'global', '_content', 'the-content' ); ?> <?php x_get_view( 'global', '_comments-template' ); ?> </article> <?php endwhile; ?> </div> <?php get_footer(); ?>I’ve already done that, the facebook comment appeared.
Cheers!
September 26, 2016 at 3:22 pm #1191353
Johannes GParticipantthank you!!!
September 26, 2016 at 3:42 pm #1191384
Johannes GParticipantOne more question: is it possible to make it the same size as the content above? it looks weird since its full width. I tried some css but it is alyways aligned to the left. I need it to be centered.
regards
JohannesSeptember 26, 2016 at 4:24 pm #1191429
JadeModeratorHi Johannes,
Please try this code instead:
<?php // ============================================================================= // VIEWS/RENEW/TEMPLATE-BLANK-8.PHP (No Container | No Header, 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(); ?>> <?php x_get_view( 'global', '_content', 'the-content' ); ?> <div class="x-container max width"><?php x_get_view( 'global', '_comments-template' ); ?></div> </article> <?php endwhile; ?> </div> <?php get_footer(); ?>Hope this helps.
September 27, 2016 at 5:48 am #1192048
Johannes GParticipantthx!!!!!
September 27, 2016 at 5:57 am #1192055
LelyModeratorYou’re welcome Johannes!
Cheers!
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1188382 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
