• Hello,

    I copied page.php for example and no errors but does not show side bars or admin bar. Any hints or ideas on how to add custom template to work?

Viewing 1 replies (of 1 total)
  • Thread Starter Pete77w

    (@pete77w)

    Okay found a solution from searching topics in this forum. I’ll leave an example for reference sake for those searching in the future.

    <?php
    /*
    Template Name: Test6
    */
    ?>

    <?php get_header(); ?>
    <section class=”content”>
    <?php get_template_part(‘inc/page-title’); ?>
    <div class=”pad group”>
    <?php while ( have_posts() ): the_post(); ?>
    <article <?php post_class(‘group’); ?>>
    <?php get_template_part(‘inc/page-image’); ?>
    <div class=”entry themeform”>
    <!— ### Content here ### —!>

    <?php the_content(); ?>
    <div class=”clear”></div>
    </div><!–/.entry–>
    </article>
    <?php if ( ot_get_option(‘page-comments’) == ‘on’ ) { comments_template(‘/comments.php’,true); } ?>
    <?php endwhile; ?>
    </div><!–/.pad–>
    </section><!–/.content–>
    <?php if ( is_user_logged_in() ) {
    get_sidebar();
    } ?>
    <?php get_footer(); ?>

Viewing 1 replies (of 1 total)
  • The topic ‘How to properly add custom template for Hueman?’ is closed to new replies.