Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #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 Chiel

    #320905

    Hi,

    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');
    #321111

    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.

    Cheers!
    Ismael

    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?

    #321437

    Hey!

    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!
    Josue

    #322692
    This reply has been marked as private.
    #322695

    Hi!

    Check it now, it should look like this on mobiles:
    http://screencast.com/t/4qOnp63j

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

    Best regards,
    Josue

    #325805

    Wow thanks Josue!

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

    #325841

    You are welcome, glad to help :)

    Regards,
    Josue

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