Support » Plugin: GiveWP - Donation Plugin and Fundraising Platform » feature request: only add content to give pages

  • Resolved Saturn

    (@asaturn)


    Give adds classes and javascript to every single page. Would it be possible to limit this to pages with Give shortcode or pages specified in the Give plugin (receipt pages, etc)?

Viewing 1 replies (of 1 total)
  • Plugin Author Matt Cromwell

    (@webdevmattcrom)

    Hi there,

    We’ve discussed this a lot, and while it is possible it is — 9 times out of 10 — not trustworthy with many websites. Which is why we have gone this route. There’s A LOT of reasons why modern browsing shouldn’t be negatively impacted by this issue, but in case you’d REALLY like to do this, here’s how I’d suggest you go about it:

    1) Dequeue all our scripts and styles. We have a pretty useful article on doing that here: https://wordimpress.com/removing-styles-scripts-from-your-wordpress-parent-theme/

    2) Register our scripts and styles with your own unique handle. This will make them available globally but not enqueued at all.

    3) Use the conditional is_post(ID) to enqueue our scripts and styles only on the pages you want them to be enqueued on.

    Hope that’s useful for you. Thanks!

Viewing 1 replies (of 1 total)
  • The topic ‘feature request: only add content to give pages’ is closed to new replies.