• Resolved frodemortensen

    (@frodemortensen)


    Hi

    I’m using the theme Customizr and I’m trying to create a custom page template, but I have trouble.

    I want the custom page template to

    1)display full width
    2)no footer
    3)no entry header

    Please can someone help me with all the code?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter frodemortensen

    (@frodemortensen)

    Here is the theme custom page i have copy. Where and what to edit to get no footer, no entry header and full width?

    ———————————————————————–
    <?php
    /*
    Template Name: Custom Page Example
    */
    ?>
    <?php do_action( ‘__before_main_wrapper’ ); ##hook of the header with get_header ?>
    <div id=”main-wrapper” class=”<?php echo implode(‘ ‘, apply_filters( ‘tc_main_wrapper_classes’ , array(‘container’) ) ) ?>”>

    <?php do_action( ‘__before_main_container’ ); ##hook of the featured page (priority 10) and breadcrumb (priority 20)…and whatever you need! ?>

    <div class=”container” role=”main”>
    <div class=”<?php echo implode(‘ ‘, apply_filters( ‘tc_column_content_wrapper_classes’ , array(‘row’ ,’column-content-wrapper’) ) ) ?>”>

    <?php do_action( ‘__before_article_container’ ); ##hook of left sidebar?>

    <div id=”content” class=”<?php echo implode(‘ ‘, apply_filters( ‘tc_article_container_class’ , array( TC_utils::tc_get_layout( TC_utils::tc_id() , ‘class’ ) , ‘article-container’ ) ) ) ?>”>

    <?php do_action( ‘__before_loop’ );##hooks the header of the list of post : archive, search… ?>

    <?php if ( have_posts() ) : ?>

    <?php while ( have_posts() ) : ##all other cases for single and lists: post, custom post type, page, archives, search, 404 ?>

    <?php the_post(); ?>

    <?php do_action( ‘__before_article’ ) ?>
    <article <?php tc__f( ‘__article_selectors’ ) ?>>
    <?php do_action( ‘__loop’ ); ?>
    </article>
    <?php do_action( ‘__after_article’ ) ?>

    <?php endwhile; ?>

    <?php endif; ##end if have posts ?>

    <?php do_action( ‘__after_loop’ );##hook of the comments and the posts navigation with priorities 10 and 20 ?>

    </div><!–.article-container –>

    <?php do_action( ‘__after_article_container’ ); ##hook of left sidebar ?>

    </div><!–.row –>
    </div><!– .container role: main –>

    <?php do_action( ‘__after_main_container’ ); ?>

    </div><!–#main-wrapper”–>

    <?php do_action( ‘__after_main_wrapper’ );##hook of the footer with get_get_footer ?>

    Thread Starter frodemortensen

    (@frodemortensen)

    Hi

    I found out that I had just to remove this line to remove footer

    <?php do_action( ‘__after_main_wrapper’ );##hook of the footer with get_get_footer ?>

    The no entry header i fixed with this code :

    .page .site-title,
    .page .site-description {
    display: none;
    }

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Theme Customizr] Making a custom page template’ is closed to new replies.