Tagged: x
-
AuthorPosts
-
February 10, 2017 at 4:39 pm #1366417
cxanderParticipantIf it matters, I’m using the renew stack on the latest version of wordpress and the X Theme. I have created a header menu and I would like to unlink one of the menu pages as I have sub-pages within it. The page is “Why Us?” and within that there are pages for Videos and Testimonials. I would like to set it up where if a user clicks on Why Us the menu drop down comes up for the other two pages but doesn’t take them to a Why Us page. I already have the drop down working, I just need to unlink the Why Us page. Is this possible?
February 10, 2017 at 11:01 pm #1366713
Prasant RaiModeratorHello There,
Thanks for writing in!
To remove link from Menu item, please navigate Appearance > Menus. Add a menu item from Custom Links and set URL to #.
http://prntscr.com/e7994yThanks.
February 11, 2017 at 7:52 am #1366997
cxanderParticipantOk, that worked. Is there a way to have the sub-menus hidden until a user clicks on the custom linked menu which then it will drop down and then if they click on the custom link menu again to have the sub-menu drop down close?
February 11, 2017 at 6:44 pm #1367358
Rue NelModeratorHello There,
Thanks for updating in! To achieve what you have in mind, please do the following:
#1] Please add the following css code in the customizer, Appearance > Customize > Custom > CSS#menu-item-724 .sub-menu, #menu-item-724:hover .sub-menu { display: none; }#2] And then please add the following JS code in the customizer, Appearance > Customize > Custom > Javascript
(function($){ $('#menu-item-724').on('click touchstart', function(){ $(this).find('.sub-menu').toggle(); }); })(jQuery);We would loved to know if this has work for you. Thank you.
February 11, 2017 at 11:08 pm #1367559
cxanderParticipantYes, this worked perfectly, thank you!
February 12, 2017 at 4:53 am #1367720
ChristopherModeratorYou’re welcome.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1366417 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
