• Resolved txtcoke

    (@txtcoke)


    Hello, how can i apply same settings in all woocommerce product pages?
    I mean I want to unload same scripts in all product pages..
    How can I achieve it rather than doing it manually in every product?
    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Gabe Livan

    (@gabelivan)

    @txtcoke you have to use the option to unload the CSS/JS on all pages of the “product” post type. You can even do it the other way around: to unload site-wide and make exceptions on a specific group of pages, such as the WooCommerce product ones.

    There’s a post written especially for this option here: https://www.assetcleanup.com/docs/how-can-a-css-js-file-be-unloaded-on-all-pages-belonging-to-a-post-type-or-vice-versa/

    Thread Starter txtcoke

    (@txtcoke)

    Thanks Gabe.
    Another thing is, in the product pages, upsells and related products has design (css)broken. They normally are shown inline and now they are displayed block.
    When I check the box “Do not apply any CSS & JavaScript settings (including preloading, “async”, “defer” & any unload rules) on this page”, it comes back to normal. How can i apply this option to all woocommerce product page instead of going manually?
    Thanks

    • This reply was modified 3 years, 11 months ago by txtcoke.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Apply same settings to all product pages’ is closed to new replies.