Manually Enqueuing Scripts
-
Hi there,
Thanks for creating this plugin – it looks and works great.
I’m trying to manually enqueue the style and script only on the page that this calendar appears using the following example: https://gist.github.com/nickyoung87/f32de613864c073028fe
I’ve unchecked the setting the on WP General Settings page and I’ve put the following before I call the header on my page template:
// Enqueue Google Calendar Events CSS. wp_enqueue_style( 'google-calendar-events-public' ); // Enqueue Google Calendar Events JS. wp_enqueue_script( 'google-calendar-events-public' );
The CSS works fine however when I change month it uses the href of the wrapping
<a>
tag and doesn’t change to the next month.If I remove this manual enqueuing and enable the setting in the admin panel the calendar works perfectly fine.
Any help would be greatly appreciated.
Many thanks,
Chris
- The topic ‘Manually Enqueuing Scripts’ is closed to new replies.