Tagged: x
-
AuthorPosts
-
October 18, 2016 at 5:19 am #1220598
ahurlburt53ParticipantI want a collapsible menu for widget area custom menus http://647.aaf.myftpupload.com/. When a web viewer clicks on main menu titles the sub menus appear
screen shot
http://i.imgur.com/95QCYBU.pngfor example I use this code for the first custom menu item
http://i.imgur.com/bSd6DFt.pngOctober 18, 2016 at 5:50 am #1220642
Paul RModeratorHi,
Regretfully this isn’t a feature offered by X. It could be possible with custom development, but this would be outside the scope of support we can offer. You may wish to consult a developer to assist you with this. X is quite extensible with child themes, so there are plenty of possibilities. Thanks for understanding. Take care!
October 18, 2016 at 5:52 am #1220645
ahurlburt53ParticipantYou got to be kidding me
October 18, 2016 at 6:43 am #1220686
Paul RModeratorHi,
To achieve this, you can add the code below in Custom > Edit Global CSS in the customizer
.x-sidebar.left .widget_nav_menu .sub-menu { display:none; }Then add this in Custom > Edit Global Javascript in the customizer
jQuery(function($) { $('.x-sidebar.left .widget_nav_menu li.menu-item-has-children a').on( "click", function() { $(this).next().slideToggle(400); }); });Hope that helps.
October 18, 2016 at 6:47 am #1220688
ahurlburt53ParticipantIf I can buy you lunch, TYTY
October 18, 2016 at 7:10 am #1220710
JoaoModeratorI am glad we managed to help,
Joao
October 18, 2016 at 7:36 am #1220733
ahurlburt53ParticipantTY Joao
October 18, 2016 at 7:45 am #1220747
ahurlburt53ParticipantHi Joao. Is there anyway to prevent submenu from closing automatically when clicked on?
October 18, 2016 at 8:44 am #1220825
Paul RModeratorHi,
You can add this under Custom > Edit Global CSS in the Customizer.
.x-sidebar.left .widget_nav_menu .current-menu-parent .sub-menu { display:block !important; }Hope that helps.
October 18, 2016 at 12:41 pm #1221111
ahurlburt53ParticipantTYTYTy. Looking good
October 18, 2016 at 1:06 pm #1221137
RahulModeratorGlad to hear it!
Let us know if you need any further assistance. We’d be happy to help!
Thank you.
October 18, 2016 at 1:58 pm #1221209
ahurlburt53ParticipantJust spoke to the client he does not like the fact when he clicks on the left menu. The website reloads to the top of page. Very difficult to navigate. For example click on first trust in the left menu. Please make the position of menu stay in the same area as click position
screen shot http://i.imgur.com/TA8HHUY.png
http://i.imgur.com/i5mlANH.pngalso client wants to remove the header completely and white line
http://i.imgur.com/zpUOVtb.pngOctober 19, 2016 at 12:06 am #1221834
LelyModeratorHi There,
Please try to update this:
jQuery(function($) { $('.x-sidebar.left .widget_nav_menu li.menu-item-has-children a').on( "click", function() { $(this).next().slideToggle(400); }); });To this:
jQuery(function($) { $('.x-sidebar.left .widget_nav_menu li.menu-item-has-children a').on( "click", function(e) { e.preventDefault(); $(this).next().slideToggle(400); }); });Hope this helps.
October 19, 2016 at 6:13 am #1222104
ahurlburt53ParticipantI update the code. now when link is clicked nothing happens? TY very much for all your help
October 19, 2016 at 9:53 am #1222355
LelyModeratorHi There,
Try to update this:
jQuery(function($) { $('.x-sidebar.left .widget_nav_menu li.menu-item-has-children > a').on( "click", function(e) { e.preventDefault(); $(this).next().slideToggle(400); }); });We have filtered the code to work on links with children only.
Do let us know how this goes. -
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1220598 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
