• milzticket

    (@milzticket)


    I am trying to make a few of my main menu items dead (not clickable). I’ve tried using just “#” in the link, also just taking everything out. The # is creating ” mysite.com/# “. Taking everything out works on the computer but disables my mobile menu to drop down and function at all. So, I believe at this point that the # doesn’t work anymore, is that correct??? Thanks for the help in advance !!!

Viewing 6 replies - 1 through 6 (of 6 total)
  • bernbe01

    (@bernbe01)

    i don’t know if it’s the *best* way to accomplish this, but i was able to in my blog add a link with no action by setting the link url =

    javascript:void(0);

    are these already custom links that you have set the link url to # for in your menu editor?

    Thread Starter milzticket

    (@milzticket)

    I tried your method, it works on the computer, but again disables my mobile drop down menu.

    To answer your question, some are, and some are at this point. I’ve been trying ideas on custom links, as well as the original page menu items. Currently trying on the custom links.

    bernbe01

    (@bernbe01)

    want to send a link to your site over? i’d be happy to make sure there isn’t something else going on

    i dont think the # should break mobile nav so it may be worth trying

    -deactivate all plugins
    -revert to twenty-fifteen
    -retest mobile menu entries

    Thread Starter milzticket

    (@milzticket)

    sure, i’m bulding it here.

    And just to be clear, the # didnt disable the mobile menu, it created https://www.mysite.com/# , which led it to the homepage again.

    Leaving it blank is what disabled it.

    bernbe01

    (@bernbe01)

    what about using

    javascript:;

    as the link url?

    bernbe01

    (@bernbe01)

    so on your site i see this file:

    https://timcroughfit.com/wp-content/themes/personal-trainer/js/custom.js?ver=1.0

    which is part of your theme is erroring out when viewed mobile on line 198. the error is present for both mobile and desktop, but is apparently not render blocking on desktop

    i suggest testing the menu item as # on the twenty-fifteen theme. if that renders mobile then you might want to file a ticket at the theme’s support forum (a link to their support is available on this page)

    the other thing to test, while still in twenty-fifteen, deactivate all plguins and retest the # link url

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘# not working to make dead parent menu item’ is closed to new replies.