Results 1 to 4 of 4
  1. #1
    Join Date
    Dec 2005
    Posts
    166
    Plugin Contributions
    0

    Default dropdown css header menu on internal pages only

    I want to show the CSS drop down menu on internal pages only, not on the home page.
    When someone selects a Particular category, only then the menu should be visible.

    Ho can I do it.

    Main thing is to hide the menu on the home page.
    http://www.raunharman.com
    http://www.raunharman.net
    Website Development, E-Book Solutions & Handicraft Exports

  2. #2
    Join Date
    Apr 2009
    Posts
    2,134
    Plugin Contributions
    3

    Default Re: dropdown css header menu on internal pages only

    You can do it in the php by adding an if statement where appropriate. WIthout a bit more information about your site then hard to be more detailed than that.

    Or:

    You can just stop the menu displaying on the home page with css. The stylesheet rule would look something like:

    Code:
    #indexDefaultHeading #dropdownmenu{
    display:none;
    }
    #dropdownmenu is the ID of the container for the dropdown menu. WIthout looking at the site I can't tell you what that would be. But you will need to find it and replace #dropdownmenu with it in the rule.


    }

  3. #3
    Join Date
    Dec 2005
    Posts
    166
    Plugin Contributions
    0

    Default Re: dropdown css header menu on internal pages only

    Thanks for this information.
    I tried this, but it does not work.


    The website is at http://204.93.193.150/~bhavikac/

    The id of the drop down menu is #dropMenuWrapper

    so, I added

    #indexDefaultHeading #dropMenuWrapper{
    display:none;
    }
    Should the main id be #indexDefaultHeading or something else.

    Any help would be greatly appreciated.

    Thanks
    http://www.raunharman.com
    http://www.raunharman.net
    Website Development, E-Book Solutions & Handicraft Exports

  4. #4
    Join Date
    Dec 2005
    Posts
    166
    Plugin Contributions
    0

    Default Re: dropdown css header menu on internal pages only

    I am sorry, it just worked.

    I replaced the #indexDefaultHeading with #indexHomeBody

    Thanks.

    Now, my next idea is that on the category pages, the dropdown menu shows the sub categories for the specific category page only. (it should not show the categories listing, but begin with sub categories on level 1)

    Hope you could help me here too.

    Thanks again.
    http://www.raunharman.com
    http://www.raunharman.net
    Website Development, E-Book Solutions & Handicraft Exports

 

 

Similar Threads

  1. CSS Dropdown menu for the header- With Categories!
    By jettrue in forum All Other Contributions/Addons
    Replies: 2344
    Last Post: 5 Mar 2020, 09:35 PM
  2. Header Dropdown Menu (CSS) Without the Dropdown???
    By hcd888 in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 27 May 2009, 01:20 AM
  3. CSS Horizontal Drop Down menu - dropdown menu width...
    By intrium in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 19 Aug 2008, 06:48 PM
  4. Using an <iframe> tag to insert the dropdown header menu into other pages...
    By rainthebat in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 27 Nov 2007, 06:20 PM
  5. Add CSS dropdown menu to header
    By DivaVocals in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 19 Feb 2007, 05:48 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