• Hi, all –

    I’m playing with twenty eleven locally (not on my site yet). In reading through some other threads, get the impression that this theme doesn’t support sidebars for Pages. True? And, if true, has anyone created a workaround for it, or should I just choose another theme? Virtually my entire site is made of Pages.

    Thanks…

Viewing 10 replies - 1 through 10 (of 10 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    Thread Starter mzimmers

    (@mzimmers)

    Thank you for the link. The instructions look clear and easy to follow. Before I begin: when you say “add a functions.php file to that folder,” do you mean grab a copy of that file from the parent theme?

    this theme doesn’t support sidebars for Pages

    it actually does – there is a default build-in page template with sidebar:

    dashboard – pages – edit page – page attributes – template

    for more options (involves coding) see for instance: https://www.transformationpowertools.com/wordpress/twenty-eleven-new-page-template-with-sidebar-correction
    or
    https://www.transformationpowertools.com/wordpress/page-template-sidebar-overwrite-theme-options-twenty-eleven

    Thread Starter mzimmers

    (@mzimmers)

    I tried your first suggestion already. I may be doing something wrong, but I don’t get a sidebar, even when I specify the sidebar template for a Page.

    And, I am using a child theme already.

    if your main theme layout option is ‘one-column, no-sidebar’, then even the ‘sidebar template’ won’t show the sidebar –

    only a guess, as I don’t have this detailed information about your site.

    to overwrite this behaviour, you will need to dig much deeper into the theme; i.e. also edit sidebar.php and possibly more (untested).

    edit:

    “add a functions.php file to that folder,” do you mean grab a copy of that file from the parent theme

    no – you need to create a new functions.php, and just add the ‘corrections’

    Thread Starter mzimmers

    (@mzimmers)

    Thanks, alchymyth. I don’t know what’s going on here…sidebars are enabled in my twenty eleven theme, and my child theme. I’ve chosen one page to test with, and set its template to sidebar…still nothing.

    Thanks for the tip on functions.php().

    Thread Starter mzimmers

    (@mzimmers)

    Anyone have any other ideas on this?

    can you post a link to you site so someone can check if all the body classes are right etc?

    just checking:

    – are you using the ‘Sidebar Template’ for those pages?

    – or have you added the get_sidebar() code to page.php, and added the fix to functions.php ?

    – or are you using something like this plugin https://www.ads-software.com/extend/plugins/twenty-eleven-theme-extensions/ and have made the approprialte settings?

    – is your dashboard – appearance – theme options setting either ‘content on left’ or ‘content on right’ ?

    Thread Starter mzimmers

    (@mzimmers)

    Well, batspit.

    I just ran through your checklist, refreshed my site (locally; I don’t have a copy online yet) and now it works. I love it when that happens; I didn’t change a thing.

    So, a couple of questions:

    1. since the Pages are in the DB, I only have to change their template once (not for the parent and child themes), right?
    2. is there some way to batch change all my Pages to use the sidebar template? I have over 100 of them, and would prefer not to do them individually if possible.
    3. is there a way to make the sidebar template the default for all new Pages I create?

    Thanks…

    EDIT:

    In explicit answer to your question, I’m using the sidebar template; I haven’t tried using either the plug-in or the code edit. I’m hoping to avoid the latter.

    Thread Starter mzimmers

    (@mzimmers)

    Bump?

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘twenty eleven: no support for sidebars in Pages?’ is closed to new replies.