Jump to content


Photo
- - - - -

Questions on sidebar and grandchild nav


This topic has been archived. This means that you cannot reply to this topic.
6 replies to this topic

#1 remington

remington

    Member

  • Members
  • PipPip
  • 18 posts

Posted 28 May 2010 - 01:52 PM

1) In the Theme Options I also have "Hide sidebars when they have no widgets." Does this apply to single posts also?

Please Login or Register to see this Hidden Content

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.

Please Login or Register to see this Hidden Content

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!

#2 cmunns

cmunns

    Advocate

  • Members

  • 6537 posts

Posted 28 May 2010 - 03:51 PM

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.

#3 remington

remington

    Member

  • Members
  • PipPip
  • 18 posts

Posted 28 May 2010 - 06:50 PM

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

#4 bryan-hadaway

bryan-hadaway

    Advocate

  • Members
  • PipPipPipPipPip
  • 3697 posts

Posted 29 May 2010 - 09:13 AM

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

#5 remington

remington

    Member

  • Members
  • PipPip
  • 18 posts

Posted 29 May 2010 - 02:21 PM

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:

Please Login or Register to see this Hidden Content

(cat id 6)

Please Login or Register to see this Hidden Content



#6 bryan-hadaway

bryan-hadaway

    Advocate

  • Members
  • PipPipPipPipPip
  • 3697 posts

Posted 01 June 2010 - 08:06 AM

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

Please Login or Register to see this Hidden Content


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:

Please Login or Register to see this Hidden Content


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

Thanks, Bryan

#7 remington

remington

    Member

  • Members
  • PipPip
  • 18 posts

Posted 01 June 2010 - 11:40 AM

Thanks very much, that is exactly what I need!