Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
  • #320511


    Is it possible to see my sidebar first instead of my actual content? for me the route is better for searching the perfect DJ!
    I only found this option. (below)

    (Show sidebar on smartphones (Sidebar is displayed then below the actual content))

    Thanks in advanced!
    Gr Chiel



    Try adding this at the very end of your theme functions.php file:

    function add_custom_script(){
    if (window.matchMedia("(min-width: 767px)").matches){
    	 jQuery("#main main").before(jQuery("#main aside"));      
    add_action('wp_footer', 'add_custom_script');

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


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



    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.


    This reply has been marked as private.


    Check it now, it should look like this on mobiles:

    I ended up adding the code in the Google Analytics Tracking Code field.

    Best regards,


    Wow thanks Josue!

    just came back from holiday and saw that it works!! thank a lot man. you’re the best!!!!
    grz Chiel


    You are welcome, glad to help :)


Viewing 8 posts - 1 through 8 (of 8 total)

You must be logged in to reply to this topic.