Support » Plugin: WooCommerce Products Per Page » Doesn’t work with Flatsome Theme

  • Resolved dotcominfo

    (@dotcominfo)


    Functionally, the plugin is working correctly, but it “intrudes” into areas of the layout where the product category and subcategory grids for products are shown.

    Instead of like in your demo, where the dropdowns are placed above and below the grid of product thumbnails, they were placed next to that region in my customer site.

    Screencaps showing how it’s supposed to look vs. how it looks with your plugin.

    Before:
    Before your plugin

    After:
    With your plugin

    I can provide you with access to the admin if it helps resolve this problem.

Viewing 2 replies - 16 through 17 (of 17 total)
  • Thanks, Jeroen! Seems working with no warnings now.

    if I understand correctly, functions.php should be amended like this:

    
    if( function_exists( 'Woocommerce_Products_Per_Page' ) && !( is_admin() || ( defined( 'DOING_AJAX' ) && DOING_AJAX ) ) ) {
        add_action( 'flatsome_category_title_alt', array( Woocommerce_Products_Per_Page()->front_end, 'products_per_page_dropdown' ), 31 );
    }
    
    Plugin Author Jeroen Sormani

    (@sormano)

    Looks good, if its working without warnings I believe you’re good.

Viewing 2 replies - 16 through 17 (of 17 total)
  • You must be logged in to reply to this topic.