optional sidebar for some pages in twentyeleven
been tearing my hair out with this one… I want the option of using sidebars on some pages in twentyeleven theme but not in others. I thought it was solved when I did as suggested here: http://wordpress.org/support/topic/twenty-eleven-sidebar-issue but it’s a near miss! My single page template displays the content the way I want it but insists on placing a sidebar below content. I do not have the get_sidebar() in the page script so I can’t figure out why it still shows up! I came up with a (creative, I think) workaround by making a new custom sidebar with display:none; in a style line within a <p> tag so that I can select an empty sidebar when making pages. This isn’t exactly a proper solution I know and I’m still bothered by extra whitespace below the content (that shouldn’t be coming from my code since display:none doesn’t leave any placeholder space) Can anyone suggest a proper fix?
- The topic ‘optional sidebar for some pages in twentyeleven’ is closed to new replies.