Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1117364
    Kiomatri
    Participant

    Hey 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)

    http://www.jorcustom.com

    Thanks alot!

    #1117982
    Rad
    Moderator

    Hi 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.

    #1118592
    Kiomatri
    Participant

    Hey 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:

    Screencast

    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?

    #1118620
    Rue Nel
    Moderator

    Hello 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.

    #1118623
    Kiomatri
    Participant

    I 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?

    #1118723
    Paul R
    Moderator

    Hi,

    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!

    #1118783
    Kiomatri
    Participant

    If 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;
    }
    #1118798
    Kiomatri
    Participant

    Also, 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?

    #1119492
    Rad
    Moderator

    Hi there,

    There is no active SuperFly on your site at this moment? Perhaps you decided to disable it?

    Thanks!

  • <script> jQuery(function($){ $("#no-reply-1117364 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>