Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 130709

Load JS/CSS/Data only on Event Calendar Pages

$
0
0

Replies: 0

Hello,

I am trying to get everything to only load when ‘tribe_is_event’ instead of on every page. So far I have figured out how to dequeue most of the javascript, css. But there are some datatables and elements in the footer that still get loaded. Is there a way to do this so that tribe elements ONLY appear on my event calendar pages and not everywhere else. It really clutters up things.

Perhaps there is a primitive that can do this on one go?

The real problem is the wp_footer (that I can figure out) and the l10n_datatables, the rest is using other filters.

I thought maybe there was a tribe filter I can use instead of all the standard WP ones.

Thoughts?

Best regards
Edward Haletky


Viewing all articles
Browse latest Browse all 130709

Trending Articles