Support » Fixing WordPress » Editing “menu.js” to include a home button

  • Hi guys,

    I’m arguing with a friends site right now – he has a menu bar across the top of his site (much like mine) but the theme he’s using uses a menu.js file to code the bar. Currently, it only lists the WordPress Pages, but we’d like to add a “Home” button to take visitors back to the index.php page… currently you have to click on the title to do so, which is confusing for a portfolio page.

    The code in the .js file is as follows:

    function mainmenu(){
    $(” #nav a”).removeAttr(“title”);
    $(” #nav ul “).css({display: “none”}); // Opera Fix
    $(” #nav li”).hover(function(){
    $(this).find(‘ul:first’).css({visibility: “visible”,display: “none”}).show(400);
    $(this).find(‘ul:first’).css({visibility: “hidden”});


    Is there something I can add to have a home button? I’ve tried all the php and html tricks, and nothing works since the menu is run off the script.



  • The topic ‘Editing “menu.js” to include a home button’ is closed to new replies.