- This topic has 11 replies, 2 voices, and was last updated 5 years, 9 months ago by Skandha.
-
AuthorPosts
-
December 6, 2018 at 8:14 am #160992Glen PavelichParticipant
My top level menu items look clickable because the little hand appears when you scroll over it. This is confusing.
Is there code to take the hand away for only the top level. Removing the # from the menu item doesn’t do it.Update
I made a class for the items called unclickable and added:
.unclickable > a:hover {
cursor: default;
pointer-events: none;
}But there is still a pointer – can you assist with removing that?
December 6, 2018 at 10:55 pm #161017SkandhaParticipant@fireflywebs: Go to => Appearance => Customize => Additional CSS and add the following CSS
Code.#menu-primary .unclickable > a { pointer-events:none; }
Let me know if this is what you want!
Kind Regards,
SkandhaDecember 11, 2018 at 9:43 am #161269Glen PavelichParticipantThat didn’t do the trick. I would like the top level items, which have a drop down menu, to not have the pointer. Is this possible?
See
https://tangledgardenherbs.com/shop/
I have this code in place at the moment
.unclickable > a:hover {
cursor: default;
pointer-events: none;
}
#menu-primary .unclickable > a {
pointer-events:none;
}December 11, 2018 at 11:01 pm #161295SkandhaParticipant@fireflywebs: Remove the code you have at the moment and try adding the following CSS Code.
#menu-primary .menu-item-has-children > a { pointer-events:none; }
Let me know if this is what you want!
Kind Regards,
SkandhaDecember 12, 2018 at 12:51 pm #161351Glen PavelichParticipantNo, just the opposite. I want the children to work but not the top item for those that DON’T have children.
Is this possible.
When I applied that code the children had a crossed out circle over them.December 13, 2018 at 3:11 am #161374SkandhaParticipant@fireflywebs: The previous code disabled pointer on the top menu item which had children. Isn’t that what you wanted? I don’t see any children item having crossed out circle over them. Can you please explain?
Kind Regards,
SkandhaDecember 14, 2018 at 9:04 am #161517Glen PavelichParticipantNo the crossed out circles don’t appear because I couldn’t leave it that way. This is a live site.
I didn’t leave the code you gave me applied after my test revealed that it caused the children to be unclickable, and with crossed out symbols over them.I see I made a major error in my last messages. Correct here:
“I want the children to work, and have pointers, but not the top item for those that DO have children.
Is this possible?”The ‘shop tab’ and ‘tea room tab’ don’t have children, so as top level, they should work as normal.
But all the others have children and so I don’t want the top level item of those ones to have a pointer.
tangledgardenherbs.com
Thanks. I have seen this on other sites. For instance on this one. http://masteringalchemy.com/
December 16, 2018 at 11:26 pm #161621SkandhaParticipant@fireflywebs: The following code is working as the way you want at my end.
#menu-primary .menu-item-has-children > a { pointer-events:none; }
So with this code the pointer is not showing up when you hover over HOME, THE GARDEN, OUR PRODUCTS, ON-SITE WEDDINGS, EVENTS & UPDATES menu items. Isn’t this what you wanted?
Let me know if it works out!
Kind Regards,
SkandhaDecember 21, 2018 at 3:05 pm #162049Glen PavelichParticipantYes, that is what I wanted but the code does not do it. The pointer still appears. There is no hand, but there is still the pointer.
My apologies on the other issue about the child-menu-items having crossed out circles over them when this code was applied…. This
- does
happen, but ONLY when I am in the Customization / Additional CSS view….so I didn’t publish it before thinking it was going to create a problem. However,
I see that this does not happen when actually published and viewed live on the browser.So…I have published the code provided in ‘additional CSS’ BUT you can see that it is not having any effect.
December 25, 2018 at 10:57 pm #162174SkandhaParticipant@fireflywebs: Go to => Appearance => Customize => Additional CSS and add the following CSS Code.
#menu-primary .menu-item-has-children > a { cursor:text !important; } #menu-primary .unclickable > a { pointer-events:unset; }
Let me know if this is what you want!
Kind Regards,
SkandhaFebruary 11, 2019 at 3:43 pm #165647Glen PavelichParticipantJust got around to trying this. Sorry.
This code didn’t make any difference. It is applied to the tangledgarden.ca site and there is still a pointer on the top level menu items with children.February 13, 2019 at 2:04 am #165748SkandhaParticipant@fireflywebs: Remove the previous CSS Code and add the following.
Go to => Appearance => Customize => Additional CSS and add the following CSS Code..menu-item-has-children > a, .menu-item-has-children { cursor:none; }
Let me know if this is what you want!
Kind Regards,
Skandha -
AuthorPosts
- The topic ‘Top level menu items look clickable’ is closed to new replies.