• karlbenn73

    (@karlbenn73)


    I have installed a Woo Product Filter widget (WOOF) to my sidebar on my Woo Storefront theme.

    When viewed on a computer the widget displays next to the products on my Shop page where it is easy to see and use.

    My problem is that on a handheld device (mobile) the product filter widget displays bellow the list of products which makes it useless as customers should use the filter to display only the products they want to see.

    Is there anyway to set the display order of this product filter widget so that it displays above the list of products?

    Kb

Viewing 1 replies (of 1 total)
  • Mikey (a11n)

    (@mikeyarce)

    Hi karlbenn,

    You could use a Storefront hook to add a sidebar up there. Something like this:

    // Make a function to hook into the area above the Storefront Content
    function marce_storefront_above_content_widget() {
    
        // Output the Sidebar you want to display up there
     	dynamic_sidebar( 'sidebar-1' );
    
    }
    add_action( 'storefront_before_content', 'marce_storefront_above_content_widget', 5 );

    Keep in mind that the code above inserts the sidebar registered as sidebar-1 into the storefront_before_content hook. You might need to change the sidebar depending on which sidebar you want to show up there. You could also register a new sidebar just for that location.

    Cheers,

Viewing 1 replies (of 1 total)
  • The topic ‘Set display order of sidebar widget to top of page on handheld device’ is closed to new replies.