Tagged: x
-
AuthorPosts
-
April 6, 2016 at 4:28 am #868880
Hi,
i want to enable Comments on page but also want to keep the layout (Blank – No Container, no Header /Fooder)
I also want to enable the Facebookcomments (FB Comment plugin from X Theme)
Please help me with this issue.
Here the Page i want the Comments: http://www.peter-beer.de/5010-entspannungsplan/
Thank you!
PeterApril 6, 2016 at 4:30 am #868882This reply has been marked as private.April 6, 2016 at 9:10 am #869350Hey Peter,
Regretfully, Blank templates do not have or don’t display the comment box because it was purposely designed for custom landing page. If you need to place Facebook Comments there, you must use the Facebook Comment embed. See https://developers.facebook.com/docs/plugins/comments
X Facebook Comments extension replaces the WordPress Commenting System once enabled. If you switch to Fullwidth template, you’ll see the Facebook Comments at the bottom of your content.
Thanks.
April 6, 2016 at 10:56 pm #870497Thank you, but i dont want so see on that page the MENU…
How can i fix that?
April 7, 2016 at 4:45 am #870862Hello Peter,
What you are trying to accomplish requires a template customization, we would like to suggest that you use 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.
Once you have your child theme active and ready, 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/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(); ?>
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/renew/
And always make sure to disallow comments if you do not want to display a comments section on the page especially in your homepage.
Hope this helps. Kindly let us know.
April 7, 2016 at 6:48 am #870986Got this error, when i do this:
Parse error: syntax error, unexpected ‘\’ (T_NS_SEPARATOR), expecting identifier (T_STRING) in /www/htdocs/w010168e/peter-beer.de/wordpress/wp-content/themes/x-child/framework/views/renew/template-blank-4.php on line 10
April 7, 2016 at 4:40 pm #871951Hi Peter,
Would you mind providing the entire content of that template? The error says that there is extra ‘\’, but I don’t see it from the provided code.
Thanks!
April 8, 2016 at 3:06 am #872474Hi, now i uploaded the file. Error dont show.
But still no comment section in “Blank – No Container, no Header /Fooder”
And also still header when i switch to “Fullwith”
can you help?
April 8, 2016 at 4:00 pm #873318Hi Peter,
Kindly provide us with your FTP details so that we could check the code you have added.
Thank you.
April 8, 2016 at 11:35 pm #873718This reply has been marked as private.April 9, 2016 at 8:04 am #874114Hi there,
The provided code works for Blank-No Container | Header, Footer template.
You need to create a new file titled template-blank-8.php.
Add following code in this file :<?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(); ?>
Upload this file to your server in the child theme’s folder
wp-content/themes/x-child/framework/views/renew/Hope it helps.
April 10, 2016 at 3:31 am #874962Perfekt thank you!
April 10, 2016 at 12:02 pm #875342You are welcome!
Glad that it helped. Feel free to let us know if you face any other issue. We’ll be happy to assist you.
Thanks for using X.
Cheers!
-
AuthorPosts