Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #554324

    Hey guys,

    I’m really enjoying the latest version of the theme, it really is getting better and better. Keep doing what you’re doing.

    I have a quick question…

    One of the main parts of a site i’m working on is a tree finder and we have bought a nice woocomerce plugin to allow us to filter exactly the way we want. The problem is it doesn’t show the sidebar / widget area on mobile so people are literally going to be presented with a list of 1000s of trees. We’d kinda like to show a cut down version of the widget on the category pages if this is at all possible?

    Many thanks and look forward to hearing back from you!

    Adam

    #554783

    Hi AdamTurner!

    That sounds like it’s going to take a lot of time and code to implement. Have you contacted the extension authors?

    Best regards,
    Elliott

    #554891

    No not yet – we can make a stripped down version of the filter no problem. I guess my question to you Elliot is how do I get the sidebar on the above mentioned link to view on mobile..?

    Sorry, maybe i confused it more than i needed to earlier.

    Best regards,
    Adam

    #554906

    It’s ok, I have solved this – I didn’t have display sidebar on smartphones ticked so i apologise. I then used the following code to put any Right Hand Sidebars above the content of the page…in this case the product finder widget. It just means that i can’t have any other pages with a RH sidebar as it’s only the tree finder filter that should logically go at the top of the page on mobile. All the other widgets are things like newsletter signup and such like to i’ve just made sure these are on the LHS on all other pages.

    Thanks for your help!

    function add_custom_script(){
    ?>
    <script>
    jQuery(window).load(function(){
    if (jQuery(window).width() <= 480){
    jQuery(“aside”).prependTo(“main”);
    }
    });
    </script>
    <?php
    }
    add_action(‘wp_footer’, ‘add_custom_script’);

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Show Sidebar Widget on Mobile Woocommerce Category Page’ is closed to new replies.