• Resolved deanMKD

    (@deanmkd)


    This plugin also have issue with Divi Theme. Looks like Divi override loop_shop_per_page
    Any sollution for this?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Jeroen Sormani

    (@sormano)

    Hi,

    Divi is indeed overriding the products per page. I do believe there’s a code snippet around the support threads that should resolve this for Divi.

    I can’t search for it at the moment, but if you search for ‘divi’ in the topics / headers I do believe you should find it.

    Regards,
    Jeroen

    Thread Starter deanMKD

    (@deanmkd)

    Aha, thanka for answer, will take a search.

    P.S: I made a search ,and found this function, that worked great. ?? i will put here, so may found usefull for someone else.

    /*
     * Override theme posts per page.
     */
    add_action( 'pre_get_posts', 'wppp_divi_override', 9  );
    function wppp_divi_override() {
    
    	if ( woocommerce_products_will_display() ) :
    		remove_action( 'pre_get_posts', 'et_custom_posts_per_page', 10 );
    	endif;
    
    }

    Tested and works 100%

    On Divi Theme Options – General TAB you can enter

    “Number of Products displayed on WooCommerce archive pages”

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Conflict With Divi Theme’ is closed to new replies.