WordPress.org

Ready to get started?Download WordPress

Forums

One-column for homepage, Sidebar for other pages - TwentyEleven (2 posts)

  1. thebritishtexan
    Member
    Posted 2 years ago #

    I created a child theme using Twenty Elelven, which has a static homepage. I set the site's layout to "one-column, no sidebar" in order to have a static homepage without a sidebar, but I would like the other pages on my website, especially the blog page, to have a sidebar. However, I have been stuck with a one-column, no sidebar layout throughout the entire site.

    For two weeks, I have researched and tried numerous ways to fix this problem, but I have not been able to resolve this issue.
    I have:
    - Added <?php get_sidebar(); ?> to the page.php, index.php, and sidebar-page.php templates.
    - Selected "Sidebar Templates" from the "Template" drop-down menu in the individual page editor.
    - Read the extremely informative "Twenty Eleven Sidebar Template not working" thread on this forum.

    Still, no luck. Does anyone know how I can add a sidebar to the pages on my website, except the homepage?

  2. aradams
    Member
    Posted 2 years ago #

    Sidebars are confusing in Twenty Eleven! Under the Appearance > Theme Options menu, The "One column, no sidebar" layout makes a narrow, single-column layout sorta like Tumblr. If you select either of the column layouts, and your homepage tis the default Recent Posts, you'll get a two-column layout on the homepage and a one-column layout on individual Posts and Pages. But if you want a single-column homepage you'll need to make a static page and set it as your homepage (Settings > Reading) and it will be single column. Then, if you want other pages to have sidebars, select Page Attributes > Sidebar Template from the editing window. You'll need to select the Sidebar Template for every page that you want to have a sidebar. Hope this helps!

Topic Closed

This topic has been closed to new replies.

About this Topic