Theme Options/Template Options or the sidebar position(left or right) #104

Closed
mjteves1986 opened this Issue Feb 7, 2014 · 2 comments

Comments

Projects
None yet
3 participants

Hello Mr. Bass,

I was wondering, if I change the template options in every pages, and select left sidebar layout. The left sidebar is not appear. only detect correct is "full-width" and "right-sidebar". I download a plugin "Options Framework" to use the themes Option menu on admin and select left sidebar on all page. but still not working.

I try to use this on page.php

global $jbst_layout;
$jbst_layout = 'full-width';

But still not working on if I set into left-sidebar( $jbst_layout = 'left-sidebar'; )
Hope you can help me Mr. Bass,

Thanks,
Mark

@bassjobsen bassjobsen added a commit that referenced this issue Feb 7, 2014

@bassjobsen bassjobsen fix for #104 0a8d8c8

@bassjobsen bassjobsen added a commit that referenced this issue Feb 7, 2014

@bassjobsen bassjobsen fix for #104 6ddd470
Owner

bassjobsen commented Feb 7, 2014

Hi Mark,

Thanks for posting this issues. I found some issues for this indeed. Please try the latest version and, let me know this fixed it.

With the latest version you should can set:
-layout per page
-layout per type (if theme options framework enabled)

Defining the layout in your templates should also be possible:

global $jbst_layout;
$jbst_layout = 'full-width';

At the moment the homepage (is not set to a static page) seems to be a special case. It gets a right-sidebar by default. Cause it is not a page you can't not change it if the options framework isn't enable. With the options framework enable the home page got the "default page layout".

In the case you create a home.php or front-page.php template you can use:

global $jbst_layout;
$jbst_layout = 'full-width';

Or define in function.php:

function jbst_set_layout_home_page()
{
    if(is_home() || is_front_page())
    {
    global $jbst_layout;
    $jbst_layout = 'three-column';
    }
}   
add_action( 'wp_head', 'jbst_set_layout_home_page');

New theme update solved widget issues for me.
(My front page has no concern of this because of custom markup).

bassjobsen closed this Feb 10, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment