Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1
    Join Date
    May 2008
    Posts
    452
    Plugin Contributions
    0

    Default disabling NavMain

    Hi -

    I'd like to experiment with disabling NavMain from my site. (I realize I might rethink this later, but for now I want to do it.)

    Is this done via a configuration setting from the admin section, or do I need to edit some code? If the latter, I'd appreciate being pointed to the right file.

    Thanks!

  2. #2
    Join Date
    Aug 2006
    Location
    portlandish, oregon
    Posts
    799
    Plugin Contributions
    0

    Default Re: disabling NavMain

    The easiest way would be to find the #navMain selector in your css and add display:none to it. This will prevent it from displaying.

  3. #3
    Join Date
    May 2008
    Posts
    452
    Plugin Contributions
    0

    Default Re: disabling NavMain

    Two questions:

    1. my stylesheet.css doesn't have a selector unique to #navMain. It has this:

      #navMain ul, #navSupp ul, #navCatTabs ul {

      Can I put a css definition unique to navMain just below this? (I believe that css files are read top to bottom, and so anything later would override or augment earlier settings, right?)
    2. this is definitely easy (assuming the above would work), but is it the "zen way?" I have the impression that most modifications to ZC done via configuration, not changing code files.


    Thanks.

  4. #4
    Join Date
    Aug 2006
    Location
    portlandish, oregon
    Posts
    799
    Plugin Contributions
    0

    Default Re: disabling NavMain

    1. Yes, if there is no selector already, you can add it. There is also a selector for #navMainWrapper I believe, so you might try to see which one works best for you. My site is heavily customized, so I can't tell you exactly what to do without a url to your site.

    2. I do not believe there is any admin control for the main navigation.


  5. #5
    Join Date
    May 2008
    Posts
    452
    Plugin Contributions
    0

    Default Re: disabling NavMain

    I'm still feeling my way through css here. I believe that the line I posted above applies only to ul items, right? So, there's nothing JUST for the navMain element itself.

    Should I put my new code before the code that I listed? That seems to be the way its done in other stylesheets I've looked at.

    The navMainWrapper element is similarly "bundled" in with other items I don't wish to hide, so I can't just add it there.

    Thanks for the help.

  6. #6
    Join Date
    Aug 2006
    Location
    portlandish, oregon
    Posts
    799
    Plugin Contributions
    0

    Default Re: disabling NavMain

    You are correct. The line you posted above pertains only to ul items for #navMain, #navSupp, and#navCatTabs.

    I would add the new code before those as well. It's how I do it but mostly for sanity and organization.

    You can add the navMainWrapper with the new code it if you want it hidden as well.

    So you could add:

    #navMainWrapper, #navMain {
    display:none;
    }

  7. #7
    Join Date
    May 2008
    Posts
    452
    Plugin Contributions
    0

    Default Re: disabling NavMain

    Thanks so much! Now (and this is mostly for my education only)...what if I wanted to move it below the banner instead of eliminating it?

  8. #8
    Join Date
    Aug 2006
    Location
    portlandish, oregon
    Posts
    799
    Plugin Contributions
    0

    Default Re: disabling NavMain

    That would be done in includes/common/tpl_header.php...there are blocks of code labeled with comments such as

    <!--bof-navigation display-->
    code is here...
    <!--eof-navigation display-->

    <!--bof-branding display-->
    code is here...
    <!--eof-branding display-->

    so you would cut the block of code for the navigation, and paste it under the block of code for the header logo...

  9. #9
    Join Date
    May 2008
    Posts
    452
    Plugin Contributions
    0

    Default Re: disabling NavMain

    Ah, OK, so it's another file-level change (which is perfectly fine...I'm just still trying to get the lay of the land here).

    And, what does the "f" stand for in "bof" and "eof?"

    Thanks.

  10. #10
    Join Date
    Aug 2006
    Location
    portlandish, oregon
    Posts
    799
    Plugin Contributions
    0

    Default Re: disabling NavMain

    It definitely takes a while to learn the system and where everything is...before you make any php file changes though, make sure you have a good grasp on the override system and that you are using your own custom template. Otherwise you will have major headaches later down the road, especially when upgrading.

    I've always just assumed the bof and eof just meant beginning of and end of. :)

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. navMain ul li setting
    By keneso in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 8 Jan 2011, 04:40 PM
  2. navMain padding issue
    By CharInLasVegas in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 25 Jan 2009, 05:13 PM
  3. NavBar and NavMain
    By DieuxSoldat_04 in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 28 Sep 2008, 02:25 AM
  4. Rollover images in navMain.
    By XjamathonX in forum Templates, Stylesheets, Page Layout
    Replies: 12
    Last Post: 23 Aug 2007, 09:07 PM
  5. navMain spaces
    By mattys in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 24 Oct 2006, 01:17 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg