Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #868880

    PeterBeer2
    Participant

    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!
    Peter

    #868882

    PeterBeer2
    Participant
    This reply has been marked as private.
    #869350

    Christian
    Moderator

    Hey 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.

    #870497

    PeterBeer2
    Participant

    Thank you, but i dont want so see on that page the MENU…

    How can i fix that?

    #870862

    Rue Nel
    Moderator

    Hello 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.

    #870986

    PeterBeer2
    Participant

    Got 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

    #871951

    Rad
    Moderator

    Hi 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!

    #872474

    PeterBeer2
    Participant

    Hi, 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?

    #873318

    Jade
    Moderator

    Hi Peter,

    Kindly provide us with your FTP details so that we could check the code you have added.

    Thank you.

    #873718

    PeterBeer2
    Participant
    This reply has been marked as private.
    #874114

    Christopher
    Moderator

    Hi 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.

    #874962

    PeterBeer2
    Participant

    Perfekt thank you!

    #875342

    Rupok
    Member

    You 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!