Viewing 16 posts - 1 through 16 (of 16 total)
  • Author
    Posts
  • #918037

    Hi there,

    How do I get the sidebar on mobile to display AFTER the product images, buy now button etc? I would like the sidebar to be the last thing on the page before the footer but can’t find a solution for this anywhere.

    Many thanks

    #918185

    Hey conjunktionman,

    Could you please give us a link to your website, we need more context to be able to help you.

    Best regards,
    Victoria

    #919293

    Hi Victoria,

    Here is one of the product pages…

    Thanks for having a look

    #919449

    Hi,

    Thanks for the link. First off, could you try updating the theme to the latest version (4.2.4) to see if that helps please? http://kriesi.at/documentation/enfold/updating-your-theme-files/. If not then please post admin login details in private so that we can have a closer look.

    Best regards,
    Rikard

    #919654
    This reply has been marked as private.
    #919932

    Hi,

    Can you please update Enfold first, as Richard suggested?

    Best regards,
    Basilis

    #922420

    Hi there, them is now updated. Thank you!

    #923577

    Hi conjunktionman,

    Looks like the sidebar is at the bottom now, does this solve your issue?

    Best regards,
    Victoria

    #923857

    Hi Victoria,

    I can’t see any change to the position of the sidebar. See the screenshot…

    http://prntscr.com/iogczd

    -Billy

    #924298

    Hi Billy,

    Please pu this code to your functipns.php

    
    add_action('wp_footer', 'ava_new_custom_script');
    function ava_new_custom_script(){
    ?>
    <script type="text/javascript">
    (function($) {
    	function a() {
    		if( $(window).innerWidth() >= 768) return;
    		$('.sidebar').insertBefore('#av_section_1');
    	}
    
    	$(window).load(function() {
    		a();
    	});
    })(jQuery);
    </script>
    <?php
    }
    

    Best regards,
    Victoria

    #924575

    Amazing. Thanks Victoria. I had so much trouble figuring this out.

    #924863

    Hi,

    Great, glad we could help. Please let us know if you should need any further help on the topic or if we can close it.

    Best regards,
    Rikard

    #932366

    Hi there,

    This fix has now caused the sidebar to load first on ALL pages on mobile. It should be after the page content. How can I fix this?

    -Billy

    #933045

    Hi Billy,

    Please, try this code instead:

    
    add_action('wp_footer', 'ava_new_custom_script');
    function ava_new_custom_script(){
    ?>
    <script type="text/javascript">
    (function($) {
    	function a() {
    		if( $(window).innerWidth() >= 768 && !$('#top').hasClass('single-product')) return;
    		$('.sidebar').insertBefore('#av_section_1');
    	}
    
    	$(window).load(function() {
    		a();
    	});
    })(jQuery);
    </script>
    <?php
    }
    

    If you need further assistance please let us know.
    Best regards,
    Victoria

    #933052

    Excellent! This worked. thank you Victoria.

    -Billy

    #933396

    Hi conjunktionman,

    Glad we got it working for you! :)

    If you need further assistance please let us know.

    Best regards,
    Victoria

Viewing 16 posts - 1 through 16 (of 16 total)
  • You must be logged in to reply to this topic.