Support » Plugin: Asset CleanUp: Page Speed Booster » How to unload on all but single posts

  • Resolved redkite

    (@redkite)


    What settings do I use to unload a social sharing plugin on everything but single posts?

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

    (@gabelivan)

    @redkite In this case, you need to unload the assets site-wide and only load them on a specific post type. Here’s how to do that: https://www.assetcleanup.com/docs/how-can-a-css-js-file-be-unloaded-on-all-pages-belonging-to-a-post-type-or-vice-versa/ – assuming you want to keep it loaded on all posts (of “post” post type), then you will have to go to the CSS & JS manager of a post, and you will find there the option to make an exception from the site-wide unload rule, just like in the examples from the documentation post I just mentioned. I hope it helps!

    Thread Starter redkite

    (@redkite)

    Thanks, I got that done and am now working on disabling WooCommerce on pages that don’t need it.

    Thread Starter redkite

    (@redkite)

    Just FYI, I was able to unload all Woo-related scripts and styles sitewide and then enable them on product, shop, cart, account and checkout pages, but could not get the Stripe credit card details fields to show up unless I prevented Asset Cleaner from working at all on the checkout page, even when enabling the Stripe JS and CSS on that page. That was the only issue I had.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.