-
AuthorPosts
-
February 26, 2018 at 9:19 pm #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
February 27, 2018 at 5:58 am #918185Hey conjunktionman,
Could you please give us a link to your website, we need more context to be able to help you.
Best regards,
VictoriaFebruary 28, 2018 at 10:10 pm #919293March 1, 2018 at 8:18 am #919449Hi,
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,
RikardMarch 1, 2018 at 2:24 pm #919654This reply has been marked as private.March 1, 2018 at 9:38 pm #919932Hi,
Can you please update Enfold first, as Richard suggested?
Best regards,
BasilisMarch 6, 2018 at 5:20 pm #922420Hi there, them is now updated. Thank you!
March 8, 2018 at 6:40 am #923577Hi conjunktionman,
Looks like the sidebar is at the bottom now, does this solve your issue?
Best regards,
VictoriaMarch 8, 2018 at 1:20 pm #923857Hi Victoria,
I can’t see any change to the position of the sidebar. See the screenshot…
-Billy
March 9, 2018 at 7:26 am #924298Hi 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,
VictoriaMarch 9, 2018 at 3:59 pm #924575Amazing. Thanks Victoria. I had so much trouble figuring this out.
March 10, 2018 at 8:02 am #924863Hi,
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,
RikardMarch 24, 2018 at 4:16 pm #932366Hi 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
March 26, 2018 at 3:32 pm #933045Hi 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,
VictoriaMarch 26, 2018 at 3:45 pm #933052Excellent! This worked. thank you Victoria.
-Billy
March 27, 2018 at 6:11 am #933396Hi conjunktionman,
Glad we got it working for you! :)
If you need further assistance please let us know.
Best regards,
Victoria -
AuthorPosts
- You must be logged in to reply to this topic.