Title: Shockproof's Replies | WordPress.org

---

# Shockproof

  [  ](https://wordpress.org/support/users/shockproof/)

 *   [Profile](https://wordpress.org/support/users/shockproof/)
 *   [Topics Started](https://wordpress.org/support/users/shockproof/topics/)
 *   [Replies Created](https://wordpress.org/support/users/shockproof/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/shockproof/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/shockproof/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/shockproof/engagements/)
 *   [Favorites](https://wordpress.org/support/users/shockproof/favorites/)

 Search replies:

## Forum Replies Created

Viewing 6 replies - 1 through 6 (of 6 total)

 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [Adding comments to a page problem!](https://wordpress.org/support/topic/adding-comments-to-a-page-problem/)
 *  Thread Starter [Shockproof](https://wordpress.org/support/users/shockproof/)
 * (@shockproof)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/adding-comments-to-a-page-problem/#post-7324726)
 * OK to update it seems that I have an ‘if’ statement on both page.php and single.
   php as below
 *     ```
       if ( comments_open() || '0' != get_comments_number() ) :
       endif;
       ```
   
 * instead of
 * `<?php comments_template(); ?>`
 * Even if I replace the ‘if’ statement with `<?php comments_template(); ?>` it 
   still doesn’t show comments??
 * Any clearer?
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [[Constructor] Create addition template not working](https://wordpress.org/support/topic/create-addition-template-not-working/)
 *  Thread Starter [Shockproof](https://wordpress.org/support/users/shockproof/)
 * (@shockproof)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/create-addition-template-not-working/#post-4156891)
 * Hi Jesin
 * OK I think I have got it sorted now. Thank you for the help. I have setup the
   child theme and although I had to re do the sidebar widgets everything seems 
   to be working OK.
 * cheers
 * Russ
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [[Constructor] Create addition template not working](https://wordpress.org/support/topic/create-addition-template-not-working/)
 *  Thread Starter [Shockproof](https://wordpress.org/support/users/shockproof/)
 * (@shockproof)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/create-addition-template-not-working/#post-4156884)
 * Hi Jesin
 * I have decided to go down a different root for now. I am going to use the existing‘
   single template and recode it.
 * Thanks for the help…appreciated!
 * Russ
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [[Constructor] Create addition template not working](https://wordpress.org/support/topic/create-addition-template-not-working/)
 *  Thread Starter [Shockproof](https://wordpress.org/support/users/shockproof/)
 * (@shockproof)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/create-addition-template-not-working/#post-4156882)
 * Hi Jeslin
 * This doesn’t seem to work. I have read about Child Themes and you have to activate
   them in Appearance>>Themes. When I go there it tells me my child theme is broken
   and needs a stylesheet! Do I import the main theme stylesheet?
 * Russ
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [[Constructor] Create addition template not working](https://wordpress.org/support/topic/create-addition-template-not-working/)
 *  Thread Starter [Shockproof](https://wordpress.org/support/users/shockproof/)
 * (@shockproof)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/create-addition-template-not-working/#post-4156874)
 * OK I have worked some of it out. The Constructor theme is slightly different.
   The template pulls layouts from the ‘**/layouts**‘ folder. So I have copied ‘**
   page.php**‘ in the root and called it **cover.php**…it looks like this…
 *     ```
       <?php
       /**
       Template name: Cover
        * @package WordPress
        * @subpackage Constructor
        */
       wp_enqueue_script( 'comment-reply' );
   
       // load header.php
       get_header('cover');
   
       // load one of layout pages (layouts/*.php) based on settings
       get_constructor_layout('cover');
   
       // load footer.php
       get_footer();
       ```
   
 * I have copied **header.php** and called it **header-cover.php** and it is working
   fine. I then copied **layouts/page.php** and renamed it **page-cover.php** but
   it does not pull the layout into the template!! I have also tried naming the 
   layout file just **cover.php**…still no luck. Any ideas…very frustrating!
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [[Constructor] Create addition template not working](https://wordpress.org/support/topic/create-addition-template-not-working/)
 *  Thread Starter [Shockproof](https://wordpress.org/support/users/shockproof/)
 * (@shockproof)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/create-addition-template-not-working/#post-4156860)
 * Hi Jesin
 * Thanks for reply.
 * I am developing it locally but here is a screenshot…[http://shockproof.bpweb.net/test/screen-shot.jpg](http://shockproof.bpweb.net/test/screen-shot.jpg).
   I simply copied the page.php, renamed it to bcgc_home.php…added ‘/*
    Template
   name: BCGC Home */’ at the top. The page code is below…
 * Thanks for looking
 *     ```
       <?php
       /*
       Template name: BCGC Home
       /**
        * @package WordPress
        * @subpackage constructor
        */
       __('BCGC Home', 'constructor'); // required for correct translation
       ?>
       <div id="content" class="box shadow opacity <?php the_constructor_layout_class() ?>">
           <div id="container">
           <?php get_constructor_slideshow(true) ?>
           <?php if (have_posts()) : ?>
               <?php while (have_posts()) : the_post(); global $post; ?>
                   <article <?php post_class(); ?> id="post-<?php the_ID() ?>">
                       <header class="opacity box">
                           <h1><?php the_title(); ?></h1>
                       </header>
                       <div class="entry">
                           <?php the_content(__('Read the rest of this entry &raquo;', 'constructor')) ?>
       				    <?php wp_link_pages(array('before' => '<p class="pages"><strong>'.__('Pages', 'constructor').':</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
                       </div>
                       <footer>
                           <?php edit_post_link(__('Edit', 'constructor'), '', ' | '); ?>
                           <?php if ($post->post_parent) : $parent_link = get_permalink($post->post_parent); ?>
                           <a href="<?php echo $parent_link; ?>"><?php _e('Back to Parent Page', 'constructor');?></a> |
                           <?php endif; ?>
                           <?php if (get_constructor_option('content', 'date')) { the_date(); echo ' | '; } ?>
                           <?php if (get_constructor_option('content', 'links', 'comments')) {
                               comments_popup_link(
                                   __('No Comments »', 'constructor'),
                                   __('1 Comment »', 'constructor'),
                                   __('% Comments »', 'constructor'),
                                   'comments-link',
                                   __('Comments Closed', 'constructor')
                               );
                           } ?>
                       </footer>
                   </article>
               <?php endwhile; ?>
           <?php else: get_constructor_nothing(); endif; ?>
           </div><!-- id='container' -->
           <?php get_constructor_sidebar(); ?>
       </div><!-- id='content' -->
       ```
   

Viewing 6 replies - 1 through 6 (of 6 total)