Tagged: x
-
AuthorPosts
-
September 1, 2016 at 10:47 am #1157029
bshumParticipantHi
I can’t figure out the css, so I’m asking for help. I have placed a custom menu in a widget area on a page. I placed it in the main sidebar. By default, the menu is open, but I’d like to make it a clickable dropdown menu.See here: http://brianshumway.com/fine-art-prints/
Help please!
Thanks
BrianSeptember 1, 2016 at 11:34 am #1157114
RupokMemberHi Brian,
I can’t see the widget menu on your given URL. Can you point this with a screenshot? Meantime you can follow this thread as it seems related – https://community.theme.co/forums/topic/clickable-dropdown-sidebar-menu/
Cheers!
September 1, 2016 at 10:42 pm #1157936
bshumParticipantThanks, but the code on that link doesn’t work for me.
It’s right above the images. It says “View by Project.” It may not look like a widget but it is.
September 1, 2016 at 11:50 pm #1158000
LelyModeratorHi Brian,
It can be achieve with Javascript. Please try adding the following on Appearance > Customize > Custom > Edit Global Javascript:
jQuery(document).ready(function($) { $('#nav_menu-8').click(function(e) { $( ".menu-fine-art-project-container" ).toggle( "slow"); }); });Hope this helps.
September 2, 2016 at 8:06 am #1158438
bshumParticipantAwesome! That worked! So how do I have the menu start in the closed position, rather than open?
September 2, 2016 at 1:12 pm #1158734
JadeModeratorHi there,
Please add this code in the customizer:
.menu-fine-art-project-container { display: none; }Hope this helps.
September 2, 2016 at 2:19 pm #1158831
bshumParticipantperfect! thanks you.
September 2, 2016 at 2:54 pm #1158877
JoaoModeratorGlad to hear we managed to help,
Have a great weekend.
Joao
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1157029 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
