Removing Drop Down from Pages

Discussion in 'WordPress' started by pratik, Feb 20, 2010.

  1. #1
    Hi all...

    The site in question is here

    If you see the services menu has a drop down. I would like to remove that drop down. How do I remove it. I mean I have a slight idea that it can be done by CSS or something, but I don't know.

    Can someone suggest what changes should I do to make the drop down go away.
     
    pratik, Feb 20, 2010 IP
  2. hmansfield

    hmansfield Guest

    Messages:
    7,904
    Likes Received:
    298
    Best Answers:
    0
    Trophy Points:
    280
    #2
    Well, the easiest and quickest way would be to remove the sub pages and make every page the primary...no parent pages.
     
    hmansfield, Feb 20, 2010 IP
  3. Wp-Mod.Com

    Wp-Mod.Com Peon

    Messages:
    381
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #3
    yes as you said , mostly it is done by css , but your drop down uses jquery function , the thing you have to do is delete a few code lines

    first jquery function for drop down

    open your theme folderto this file
    cubit/js/custom.js

    and

    delete this

    function kriesi_mainmenu(){
    jQuery("#nav a, #subnav a").removeAttr('title');
    jQuery(" #nav ul ").css({display: "none"}); // Opera Fix
    jQuery(" #nav li").hover(function(){
    		jQuery(this).find('ul:first:hidden').css({visibility: "visible",display: "none"}).show(400);
    		},function(){
    		jQuery(this).find('ul:first').css({visibility: "hidden"});
    		});
    }
    
    
    Code (markup):
    and a few css lines has to be deleted , contact me , i will show u cannot explain here
     
    Wp-Mod.Com, Feb 20, 2010 IP
  4. happyches

    happyches Peon

    Messages:
    48
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Im a cheat, and would use a plugin to do it.. :)
    Page-Link-Manager lets you choose which page links are included in your site's navigation.
     
    happyches, Feb 21, 2010 IP
    pratik likes this.
  5. pratik

    pratik Notable Member

    Messages:
    2,308
    Likes Received:
    114
    Best Answers:
    0
    Trophy Points:
    200
    #5
    Ya even I thought of the same thing. But then I didn't wanted to play with my links.

    I guess the plugin did the job.... :)

    This is perfect. It did the job well.
    Thanks all
     
    pratik, Feb 21, 2010 IP