Tagged: x
-
AuthorPosts
-
August 4, 2016 at 10:06 am #1117364
KiomatriParticipantHey X,
Woocommerce
On single product pages, instead of the up-sells, I want to display cross-sells.Superfly
While using the superfly plugin on the mobile site, I want visitors to not be able to scroll the page, is this possible?
If not, is there a way to have the menu to act less glitchy when scrolling on mobile?
(Stays at top when scrolling, then jumps to correct position is scrolling is finished)Thanks alot!
August 4, 2016 at 6:04 pm #1117982
RadModeratorHi there,
Thanks for writing in.
Cross-sells are products promoted within cart https://docs.woocommerce.com/document/related-products-up-sells-and-cross-sells/. It can be move but by through customization which, unfortunately, what criteria will be affected since it’s intended for the specific place. You may contact a Woocommerce developer for that purpose.
About the Superfly, it’s not glitchy on my end. Please try adding this code to Admin > Appearance > Customizer > Custom > Javascript
jQuery( function($) { $('.sfm-open').on('click', function(){ $('html').css({overflow:'hidden'}); } ); $('.sfm-close').on('click', function(){ $('html').css({overflow:'auto'}); } ); } );Hope this helps.
August 5, 2016 at 3:10 am #1118592
KiomatriParticipantHey there Rad,
I’ll try to fix that in another way then!
What does this code do? It doesnt prevent me from scrolling.
This is what I meant with the glitchiness by the way:I know it has to do with the addressbar appearing and disappearing but is there anything I can do to make this a little more smooth?
Related question that came to my mind, is it possible to touch the complete menu item and open the submenu, instead of only touching the arrow next to the items?
August 5, 2016 at 3:50 am #1118620
Rue NelModeratorHello There,
The address bar is being handled by the browser and not with a theme or even WordPress. This is the default behaviour. To better test it, you can use the default WordPress theme. Please try to edit your SuperFly menu settings and make sure that SuperFly menu will be displayed as fullscreen.
Hope this helps.
August 5, 2016 at 3:58 am #1118623
KiomatriParticipantI understand, hoped there was a way to make it react more smoothly.
Any solution for the other qeustion? 🙂
Related question that came to my mind, is it possible to touch the complete menu item and open the submenu, instead of only touching the arrow next to the items?
August 5, 2016 at 6:24 am #1118723
Paul RModeratorHi,
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!
August 5, 2016 at 7:29 am #1118783
KiomatriParticipantIf anyone wanted to know, I still got that last question fixed myself by making the indicators the full width of the menu item, and positioning the indicator as high as possible in the Z-index. After that you just put the indicator back in the right place.
.sfm-vertical-nav .sfm-sm-indicator { width: 100%; z-index: 9999; } #sfm-sidebar.sfm-indicators .sfm-sm-indicator i { margin: -0.7em -20px 0; text-align: right; }August 5, 2016 at 7:42 am #1118798
KiomatriParticipantAlso, the not scrolling part was fixed (on desktop) by adding this jquery:
jQuery(document).ready(function($) { $('.sfm-navicon-button').on('click', function(){ $('html').css({overflow:'hidden'}); } ); $('.sfm-sidebar-close').on('click', function(){ $('html').css({overflow:'auto'}); } ); $('#sfm-overlay').on('click', function(){ $('html').css({overflow:'auto'}); } ); } );Can you maybe look why it won’t work on mobile?
August 5, 2016 at 6:57 pm #1119492
RadModeratorHi there,
There is no active SuperFly on your site at this moment? Perhaps you decided to disable it?
Thanks!
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1117364 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
