Tagged: x
-
AuthorPosts
-
June 5, 2016 at 2:56 pm #1026879
logogloParticipantHi there, please refer to this page:
Have a look on a mobile device, the menu is a drop down ok, when you click on the one page elements such as prices, or contact, the menu stays on the screen instead of minimizing, thus it covers the entire website, and doesn’t allow the viewer to see the content.
Thanks.
June 6, 2016 at 12:24 am #1027405
Rue NelModeratorHello There,
Thanks for writing in! To resolve this issue, please add the following JS code in the customizer, Appearance > Customize > Custom > Javascript
(function($){ $('.x-one-page-navigation-active .x-navbar .mobile .x-nav .menu-item').on('click touchend', function(){ //alert('Click'); $('.x-btn-navbar').trigger('click'); }); })(jQuery);Please let us know if this works out for you.
June 6, 2016 at 12:24 am #1027406
RupokMemberHi there,
Please add the following Code under Customize -> Custom -> JavaScript :
(function($){ $('.x-navbar .x-nav-wrap.mobile a').click(function(){ $('.x-nav-wrap.mobile').toggleClass('in').css('height', 0); $('.x-btn-navbar').toggleClass('collapsed'); }); })(jQuery);Hope this helps.
Cheers!
June 7, 2016 at 4:43 pm #1030723
logogloParticipantThe 1st one works, but slows my site down somewhat, is there a better way of adding that script? maybe to the theme functions?
June 8, 2016 at 3:00 am #1031423
RupokMemberHi there,
Thanks for writing back! It shouldn’t slow down your site as it’s a simple script. However you can try adding your scripts like below on your Child Theme’s functions.php
function my_custom_head_output() { ?> <script type="text/javascript"> (function($){ $('.x-one-page-navigation-active .x-navbar .mobile .x-nav .menu-item').on('click touchend', function(){ //alert('Click'); $('.x-btn-navbar').trigger('click'); }); })(jQuery); </script> <?php } add_action( 'wp_head', 'my_custom_head_output' );Hope this helps.
Cheers!
June 8, 2016 at 2:52 pm #1032560
logogloParticipantHmm, I added that code into dreamweaver to check, and there is a syntax error…
When I add it to functions.php it doesnt work, the mobile menu stops working.
June 8, 2016 at 3:17 pm #1032592
logogloParticipantHi, ok, so it works well on ONE device, and ONE rotaion…on a tablet, the background looks great portrait, if you turn it to landscape, it zooms in and looks ugly.
For mobile, landscape and portrait it looks terrible.
Is there a solution for both? to get it to look like the dektop version (without parallax obviously)
Thanks.
June 8, 2016 at 9:27 pm #1033173
RadModeratorHi there,
Hmm, does that mean the javascript works on all devices and orientation? And your issue now is the background?
And about the background, is it body background or section’s background? I don’t see any issue and there is no parallax at all even on desktop.
Thanks!
June 9, 2016 at 2:30 pm #1034542
logogloParticipantSorry, that last reply was for another thread.
I added that code into dreamweaver to check, and there is a syntax error…
When I add it to functions.php it doesnt work, the mobile menu stops working.
June 9, 2016 at 9:08 pm #1035130
RadModeratorHi there,
The code seems to be correct, what error you’re getting? Would you mind providing your screenshots?
Thanks!
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1026879 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
