Static Menu Tabs: Leaving the URL field blank in custom links?
I was the first to suggest this (when custom menus were still a novelty and worked in a few themes only):
And I kept suggesting it since then. If I remember well, there was a thread where a staff member said you can also use the # method, which means they didn’t object to the other way of doing it. But they may change their mind.
Can it be relied upon to work in future versions of WP? I don’t think this question can be answered: WP updates things all the time, so you cannot know. The Support docs are also continually updated, but still they don’t document everything. The # trick itself wasn’t there from the start:
Thanks for the response. I didn’t think the idea could have been original, but I couldn’t find any previous mentions in the forum. Thanks for the pointer. :)
As a newbie, I’m surprised that this isn’t documented in the menus support doc instead of the # method. Leaving a blank url just seems much ‘cleaner’. As well as not having the dummy URL show up in the status bar, and the visual clue of the pointer changing to an I-bar, (as mentioned above), there are a few other minor advantages. For instance, clicking a # adds it to your browser history; jumps to the top of the page if you’re scrolled down, moving the menus away from your mouse pointer; and highlights the # item clicked, even if you’re still actually looking at a page that’s not part of that menu. None of these, albeit minor issues, occur with a blank url.
I hope you get the staff to take notice sometime! :)
The topic ‘Static Menu Tabs: Leaving the URL field blank in custom links?’ is closed to new replies.