-
AuthorPosts
-
September 17, 2014 at 2:39 pm #320511
Hi,
Is it possible to see my sidebar first instead of my actual content? for me the route is better for searching the perfect DJ!
http://www.uniteddjbookings.nl/aanbod
I only found this option. (below)(Show sidebar on smartphones (Sidebar is displayed then below the actual content))
Thanks in advanced!
Gr ChielSeptember 18, 2014 at 6:11 am #320905Hi,
Try adding this at the very end of your theme functions.php file:
function add_custom_script(){ ?> <script> jQuery(window).load(function(){ if (window.matchMedia("(min-width: 767px)").matches){ jQuery("#main main").before(jQuery("#main aside")); } }); </script> <?php } add_action('wp_footer', 'add_custom_script');
September 18, 2014 at 12:28 pm #321111hi Josue,
and then? what do i see now? i’m not a php programmer, sorry..
From ismael (moderator aswell) i get the tip to make my own shop page and with ‘advanced layout builder’Ismael wrote:
Hi Chiel!
Thank you for using Enfold.
I’m sorry it’s not possible without modifying the theme files. What you can do is to create your own shop page using the Advance Layout Builder. Remove the sidebar on the Layout settings. Add 1/4 and 3/4 columns layouts. Add the content on the 3/4 column and the Widget Area element on the other. The 1/4 column will act as a sidebar and it will be rendered first when viewing on mobile.
Cheers!
IsmaelNow that i’ve done that, i have another problem.
It worked For 5 min. the layout columns (1/4 and 3/4) worked for 5 min. Then my woocommerce products are being showed under the widget area (1/4th column)maybe there some thing wrong with woo commerce and ‘avia’ together?
Do You have an idea?
September 18, 2014 at 7:56 pm #321437Hey!
Did you try adding the code i suggested? basically that will swap the position of the sidebar and the content when the page is being on mobile, that way the sidebar will appear first.
If you create me an admin account i may be able to apply the code for you.
Cheers!
JosueSeptember 21, 2014 at 9:50 pm #322692This reply has been marked as private.September 21, 2014 at 10:10 pm #322695Hi!
Check it now, it should look like this on mobiles:
http://screencast.com/t/4qOnp63jI ended up adding the code in the Google Analytics Tracking Code field.
Best regards,
JosueSeptember 27, 2014 at 12:59 am #325805Wow thanks Josue!
just came back from holiday and saw that it works!! thank a lot man. you’re the best!!!!
grz ChielSeptember 27, 2014 at 2:28 am #325841You are welcome, glad to help :)
Regards,
Josue -
AuthorPosts
- You must be logged in to reply to this topic.