Create a menu option with no link for sub menus
txt2nite
Registered Users Posts: 39 Big grins
Hello this seems easy but couldn't find the answer
I have a menu with sub links. I want to make selector menu option have no link, how do I do this? The usual method is just using a #, but this doesnt seem to work here.
Can you help?
Oh and my domain is shop.tubemaper.com thanks
0
Comments
Worked fine on my testing page. You can see it live here: https://gallery.imagesinthebackcountry.com/Smugmug-customization/Customize-Dropdowns, it's the 'Placement' link.
Images in the Backcountry
My SmugMug Customizations | Adding CSS to Your Site | SEO for the Photographer | Locate Your Page/Widget Number | SmugMug Help Desk
You posted the wrong site. It should be this: https://shop.tubemapper.com/
Images in the Backcountry
My SmugMug Customizations | Adding CSS to Your Site | SEO for the Photographer | Locate Your Page/Widget Number | SmugMug Help Desk
thanks if I click on the links with + on them with the desktop version, it goes to a blank page. Click on the menu on left
The trouble exists for both of you.
If you set the value of the URL-field to '#' as you did, it is translated within the code to
<a href=http://#" >xxx</a>
instead of the<a href=#>xxx</a>
which you would need to return to the same page you are on (or in Smugs case to get to the contact form it looks like).I'll have to try it tonight to see what works, thinking that maybe leaving the URL-field empty might do the trick to not take you to a blank page.
Ha ha, leaving it blank seems to work.
Its funny I thought I knew the answer and created a problem that didn't ever exist
I don't understand. I used that on that example page and I'm not seeing anything wrong.
Images in the Backcountry
My SmugMug Customizations | Adding CSS to Your Site | SEO for the Photographer | Locate Your Page/Widget Number | SmugMug Help Desk
I see now. For some reason on my example page, my 'About Me' page shows
http://#
in the custom URL section. Not sure how that happened, but I fixed it as it now goes to me WordPress page's 'About Me'. However, the 'Placeholder' menu items still show#
in the URL section, and works as expected.Images in the Backcountry
My SmugMug Customizations | Adding CSS to Your Site | SEO for the Photographer | Locate Your Page/Widget Number | SmugMug Help Desk
@Hikin' Mike I checked your 'Placeholder' menu item, in Firefox it works (staying on the same site, but being shown as a link). In Safari, Chrome, and Opera it will go to a blank page...well in Safari it will actually show you an error message: "Safari cannot open the page "#" because the address is invalid".
The code I get extracted for that menu item 'Placeholder' on your website looks like this:
So both the 'Placeholder' and the 'Sub-menu Placeholder' have the same href=http://# code that won't quite work (except for Firefox)
Hope that helps
@txt2nite good to know that it was as I thought
Makes sense, since I use Firefox...lol! Fixed it. Thanks!
Images in the Backcountry
My SmugMug Customizations | Adding CSS to Your Site | SEO for the Photographer | Locate Your Page/Widget Number | SmugMug Help Desk
You are welcome, @Hikin' Mike