Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #895290
    PeterBeer2
    Participant

    Hi,

    i want to enable Comments on page but also want to keep the layout (Blank – No Container, no Header /Fooder)

    I need the code i have enter here: wp-content/themes/x-child/framework/views/ethos/

    Can you provide me the code for it?
    Thanks!

    Here the Page i want the Comments: http://www.inspirationsblog.de/weniger-stress-hoehere-produktivitaet-und-kreativitaet/

    Thank you!
    Peter

    #896248
    Rue Nel
    Moderator

    Hello Peter,

    Thanks for writing in!

    By default, the comments template is not present in the said page template. You will need to modify it. Since 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/ETHOS/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">
        <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
          <div class="entry-content">
    
            <?php while ( have_posts() ) : the_post(); ?>
              <?php the_content(); ?>
              <?php x_link_pages(); ?>
    
              <?php x_get_view( 'global', '_comments-template' ); ?>
              
            <?php endwhile; ?>
    
          </div>
        </article>
      </div>
    
    <?php get_footer(); ?>

    3] Save the file named as template-blank-8.php
    4] Upload this file to your server in the child theme’s folder
    wp-content/themes/x-child/framework/views/ethos/

    Hope this helps.

  • <script> jQuery(function($){ $("#no-reply-895290 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>