Jump to content
Sign in to follow this  
etinteractive

WHP3 Sidebar not showing on Default Template

Recommended Posts

etinteractive

Set up a page as Default Template. Configured the specific page to show "short sidebar" . Short sidebar has Text widget "XXXXX". The sidebar doesn't display anything on the page. Ideas?

Share this post


Link to post
Share on other sites
etinteractive

If i configure the "MAIN SIDEBAR" with text, it shows up on the default template, even tho in the admin panel on that specific page i have "the_sidebar" variable set to "secondary".

Share this post


Link to post
Share on other sites
etinteractive

I do not have a public link I can post.

Share this post


Link to post
Share on other sites
etinteractive

anyone else have this issue?

Share this post


Link to post
Share on other sites
cmunns

Did you double check to make sure your options are being saved correctly and that the short sidebar is selected. I'm sure you probably have but I don't know how to help if I can't see what's going on.

Share this post


Link to post
Share on other sites
etinteractive

I can give you details offline, but not in public. but yea. I set the page to "secondary" and nothing appears. set sidebar back to Main and it appears. I set in admin under SIDEBAR Options, the default sidebar to be Secondary. which works. but if i edit an individual page and select MAIN or Short, that one page still loads "Secondary" The page override doesn't work.

Share this post


Link to post
Share on other sites
etinteractive

Ok, so i've done more testing. It works for a Page. But if i create a page called "blog" and then set WP for my Posts Page to be on page "blog". Editing the sidebar does nothing.

Share this post


Link to post
Share on other sites
Andrew

This is because the WordPress or blog page in WordPress doesn't support custom fields on a page by page basis. This is how we control which sidebar shows up where... If you'd like, we can show you how to hack the sidebar.php file to get it to do what you want...

Share this post


Link to post
Share on other sites
etinteractive

Fire Away! I'm all ears :-)

Share this post


Link to post
Share on other sites
cmunns

In sidebar.php modify the line of code from this: ` <?php if(pagelines('the_sidebar', $post->ID) == 'secondary'):?> ` to this: ` <?php if((pagelines('the_sidebar', $post->ID) == 'secondary') || (is_home())):?> `

Share this post


Link to post
Share on other sites
etinteractive

Thanks for the help!! works great.

Share this post


Link to post
Share on other sites
etinteractive

Another issue cropped up, now when I click an actual post title and am inside a individual blog post, the sidebar goes back to "main". Same with any Archives/Category link.

Share this post


Link to post
Share on other sites
cmunns

for single post pages this shouldn't happen. For archives and cats you can also add more conditionals to the same statement as before e.g. is_category() and is_archive()

Share this post


Link to post
Share on other sites
etinteractive

Do you have an IM or email, i will show you offline.

Share this post


Link to post
Share on other sites
cmunns

did you add those conditionals and it not work?

Share this post


Link to post
Share on other sites
etinteractive

It works for all of them EXCEPT when I click on a single blog entry ie /2010/02/hello-world/ ** update ** adding is_single() fixes the issue i am having.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×