Jump to content
Sign in to follow this  
remington

Questions on sidebar and grandchild nav

Recommended Posts

remington    0
remington

1) In the Theme Options I also have "Hide sidebars when they have no widgets." Does this apply to single posts also? http://tyndale.lunariffic.com/2010/03/278 This is still showing a sidebar area even though there are no widgets. Also, I'm using Widget Logic to remove all widgets - does that make a difference? 2) In the grandchildnav, I would like it to display pages to a depth of 1 only. http://tyndale.lunariffic.com/academics/catalog/theo23 See the Theology (THEO) has subpages Theo 4000, test, Theo 5000, etc. I would like all those to be gone, and the nav display only Theology (THEO). Thanks for helping!

Share this post


Link to post
Share on other sites
cmunns    16
cmunns

I think the easiest way for you to do this is just list the Page ID's of those 3rd level pages in the widget itself that way you don't have to modify any of the code.

Share this post


Link to post
Share on other sites
remington    0
remington

Hmm. How would I do that? Also, /is/ there a way to modify depth in the code?

Share this post


Link to post
Share on other sites
bryan-hadaway    3
bryan-hadaway

Okay, first step... please provide a list of all the URLs in which a sidebar appears that you do NOT want to appear, then I'll write some code for you and tell you where to paste it so that you can hide all those unwanted sidebars. Thanks, Bryan

Share this post


Link to post
Share on other sites
remington    0
remington

The URLs will be variable as I build in more of the website. Basically, there are "classes" which need all content on full-width pages. Thus, the pages (in the broad sense) that need sidebars removed are: 1) The unique categories I assign to each class 2) The single posts IN those categories Examples: http://tyndale.lunariffic.com/category/romm1940 (cat id 6) http://tyndale.lunariffic.com/2010/03/276

Share this post


Link to post
Share on other sites
bryan-hadaway    3
bryan-hadaway

Okay, try adding this to your Custom Code > Custom CSS:

.category #sidebar, .single #sidebar{display:none}
This will hide all category and single post page sidebars. If you want to add exceptions, below the other code, you can do so with the exact page id:
.category-romm1940{display:inline}

You can easily find the class or id of any page by looking at the source code and Ctrl+F body class. Thanks, Bryan

Share this post


Link to post
Share on other sites
remington    0
remington

Thanks very much, that is exactly what I need!

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  

×