Thread: Nav Main

Results 1 to 4 of 4
  1. #1
    Join Date
    Oct 2008
    Posts
    384
    Plugin Contributions
    0

    Default Nav Main

    How do I stop the catagories appearing across the page in NavMain but retain the navmain area showing at a pre defined depth I would like the area to remain so as I can use its background colour

  2. #2
    Join Date
    Oct 2008
    Location
    Bath, UK
    Posts
    3
    Plugin Contributions
    0

    Default Re: Nav Main

    In tpl_modules_categories_tabs.php you would need to disable the php

    PHP Code:
    <?php for ($i=0$n=sizeof($links_list); $i<$n$i++) { ?>
      <li><?php echo $links_list[$i];?></li>
    <?php ?>
    by commenting it out

    PHP Code:
    <?php /* for ($i=0, $n=sizeof($links_list); $i<$n; $i++) { ?>
      <li><?php echo $links_list[$i];?></li>
    <?php } */ 
    ?>
    then in the style sheet make sure that you set a height for the element navCatTabs so that it still appears

    div#navCatTabs{ height: 80px; }

  3. #3
    Join Date
    Mar 2008
    Location
    Cape Town & London (depends on the season)
    Posts
    2,975
    Plugin Contributions
    0

    Default Re: Nav Main

    Have you considered alternative ways to display a section of colour under the logo header.

    Hacking the code is generally a "last resort" - it's often better to use inherent features.

    Set Nav Cat tabs to off in admin.

    I would suggest that "header_bg.jpg" is created in your desired colour, and is XXX pixels deeper than "logo.gif" (or logo.jpg, as the case may be.)

    Set your header wrapper (in stylesheet.css) to be as deep as header_bg.jpg

    You may also need to adjust the relevant defines in

    includes/languages/english/header.php

    ( save any edits to this in: includes/languages/english/CUSTOM/header.php )

  4. #4
    Join Date
    Oct 2008
    Posts
    384
    Plugin Contributions
    0

    Default Re: Nav Main

    Many thanks

 

 

Similar Threads

  1. Rename Nav Main Links
    By melindaf in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 17 Aug 2009, 06:17 PM
  2. remove main nav bar
    By SarahMD in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 2 Aug 2008, 02:47 AM
  3. Move main nav items to categories nav
    By glennnz in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 13 May 2008, 08:14 AM
  4. nav main wrapper
    By Cecile in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 7 May 2008, 11:42 AM

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