Side Bar diplay

  • bjeffries

    #910

    How do I turn off the sidebar on some pages but not others? There are a few pages where I just want a single column but the rest of the site I would like there to be the sidebar.

    Kim

    #13948

    Edit the page, in right side you have page settings option for one column, no sidebar.

    Kim

    bjeffries

    #13949

    sorry for the late reply. I tried that option but thats a specific template. I have 5 custom made template that do not call on the loop and have specific HTML for what those pages pertain to. So when I call header and footer it posts the side bar.

    I tried creating a page BlastFromThePast-single.php and using this code:

    <?php
    /**
    * Template Name: Blast From The Past Single
    **/
    get_header(); ?>
    <?php get_template_part('BlastFromThePast', 'single'); ?>
    <?php get_footer(); ?>

    and on the BlastFromThePast.php page it has this code:

    <?php get_header(); ?>
    <? /** all my HTML **/ ?>
    <?php do_action('graphene_bottom_content'); ?>
    <?php get_footer(); ?>

    but that doesn’t load the page.

    Thanks for your help

    Admin

    Syahir Hakim

    #13950

    Try adding the following code at the top of the template file before the get_header() call:

    global $graphene_settings;
    $graphene_settings['column_mode'] = 'one-column';

    bjeffries

    #13951

    worked wonderfully. Thank you!

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.