Tagged: x
-
AuthorPosts
-
December 16, 2016 at 9:28 pm #1296338
koosang153ParticipantI am using ethos theme for navigation bar and when I try to click menu word on navigation bar on mobile, the entire box that contains word for each menu is supposed to be clickable and linking function, but only the ⤋ arrow and word itself is clickable not the space inbetween inside the same box..
if you know what I mean…so that bothers my client and asking me why navigation bar button is not working.
How can I fix this issue? Can I make entire each box(as one whole box) to be clickable?
I tried to insert
jQuery(function($){
$(‘.x-navbar .mobile .x-nav li.menu-item-has-children>a’).on(‘click’, function(e) {
e.preventDefault();
var sub_toggle = $(this).find(‘.x-sub-toggle’),
sub_menu = sub_toggle.attr(‘data-target’);
sub_toggle.toggleClass(“x-active”).closest(‘li’).toggleClass(“x-active”);
$(sub_menu).slideToggle().toggleClass(‘in’);
});
});but, this code didn’t work…
Please help!
My site is http://www.naver.designThank you!
December 16, 2016 at 11:31 pm #1296378
RadModeratorHi there,
Thanks for posting in.
Please try replacing that code with this
jQuery( function($) { $('.x-nav-wrap.mobile .x-sub-toggle').off('touchstart touchend') .on('click', function(e){ e.stopPropagation(); } ) .parent().off('touchstart touchend').on( function(e){ e.preventDefault(); $(this).find('.x-sub-toggle').click(); }); });Then please provide the login credentials if this won’t work, as I may need to remove the faulty script.
Thanks!
December 17, 2016 at 2:11 am #1296416
koosang153ParticipantThis reply has been marked as private.December 17, 2016 at 2:17 am #1296418
ChristopherModeratorHi there,
Please add following code in Customize -> Custom -> Global CSS :
.x-sub-toggle { width: 100%; text-align: right; margin-right: 23px; }Hope that helps.
December 17, 2016 at 3:33 am #1296450
koosang153ParticipantHi,
I don’t know why..but now, when I see it from mobile, the logo is cut off to the side.
December 17, 2016 at 3:40 am #1296459
ChristopherModeratorHi there,
I don’t see issue with logo, please see the attachment.
Please clear cache and check again and if you need further assist, provide us with some screen shots.
Thanks.
December 17, 2016 at 4:08 am #1296474
koosang153ParticipantThis is after I insert the code, and cleared the cache.
From real mobile view, it still looks like this….And still menu is not set as how I wanted.
While each menu box is clickable, some blank menu with # gets refreshed when it’s touched.
It should just be dropped down for lower menus, shouldn’t refresh the site.December 17, 2016 at 5:22 am #1296510
ChristopherModeratorHi there,
Please move following code from Customize -> Global CSS to Customize -> Global JavaScript:
jQuery( function($) { $('.x-nav-wrap.mobile .x-sub-toggle').off('touchstart touchend') .on('click', function(e){ e.stopPropagation(); } ) .parent().off('touchstart touchend').on( function(e){ e.preventDefault(); $(this).find('.x-sub-toggle').click(); }); });If it doesn’t help, insert the code I provided in previous replay under Customize -> Global CSS.
Hope it helps.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1296338 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
