Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Luke Cavanagh

    (@lukeca34)

    `<?php
    /*
    Template Name: Full Width
    /**
    * The template for displaying all pages.
    *
    * This is the template that displays all pages by default.
    * Please note that this is the WordPress construct of pages
    * and that other ‘pages’ on your WordPress site will use a
    * different template.
    *
    * @package WEN Business
    */

    get_header(); ?>

    <div id=”primary” <?php wen_business_content_class( ‘content-area’ ); ?> >
    <main id=”main” class=”site-main” role=”main”>

    <?php while ( have_posts() ) : the_post(); ?>

    <?php get_template_part( ‘content’, ‘page’ ); ?>

    <?php
    // If comments are open or we have at least one comment, load up the comment template
    if ( comments_open() || get_comments_number() ) :
    comments_template();
    endif;
    ?>

    <?php endwhile; // end of the loop. ?>

    </main><!– #main –>

    <?php get_footer(); ?>

    Theme Author WEN Themes

    (@wenthemes)

    It’s simple and no need to create different fullwidth template.
    In page editor section you would find an option ‘Choose Layout’ and set option to ‘No sidebar’. This gives you fullwidth layout to your particular page.

    Thanks

    Thread Starter Luke Cavanagh

    (@lukeca34)

    Thanks exactly what I needed.

    Cheers
    Luke

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Full Width Template’ is closed to new replies.