Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • ecohosting Friend
    #134648

    Good day!

    I am trying to add a main menu item without any link to it. I want to create a top level menu item that simply opens with its submenu items and does not itself link to anything.

    I have been using the # in the URL but it always sends people back to the homepage. Is there a way to do this without any link at all??

    I tried using a placeholder but that messes up the main menu (CSS position issue) and it too links back to the homepage.

    Any ideas??

    Thanks,
    G

    Sherlock Friend
    #276526

    You can do so by the following way:
    1. Edit Base.class.php(templatesja_olivineja_menus folder)
    Search that line:

    $data = '<a href="#" title=""><span class="separator">'.$tmp->name.'</span></a>';
    Change to

    $data = '<span class="separator">'.$tmp->name.'</span>';

    2.Add those lines into template.css

    #ja-mainnav span.separator {
    display:block;
    padding:30px 15px 5px;
    height:65px;
    }


    you can add more color, font-size,.. as you want

    3. you choose topmenu as type is separator

    ecohosting Friend
    #276619

    Thanks a million! I’ll go try it out right now but I think that’s the ticket right there.

    Cheers!

    G

    ecohosting Friend
    #276645

    Just finished a little testing and it is still not 100%. The style is ver different frm the menu-title style used for the other menu items. I tried messing with it and even changing the class for the separator to menu-title but it still was not happenning.

    I found another solution though, not as pretty, but it works. I added LinkURL menu item and put ‘javascript:; ‘ as the URL and it does not go anywhere when clicked on. So it does the job.

    Thanks for your help.

    G

    Sherlock Friend
    #276655

    Ok
    Please share your solution

Viewing 5 posts - 1 through 5 (of 5 total)

This topic contains 5 replies, has 2 voices, and was last updated by  Sherlock 16 years ago.

We moved to new unified forum. Please post all new support queries in our New Forum