Plugin uses “wp_enqueue_scripts” WordPress action to load Javascript files. Any idea what might be preventing this as it loads perfectly on other WP pages and posts?
The social share is Sassy Social Share. When I contacted their support, this is the reply I received…
‘JS file of the plugin sassy-social-share-public.js is not being loaded at your web page. That’s why the icons are not responding on click. (See here: https://immersivetechnologiesskillnet.ie/courses-and-events/unreal-engine-workshops-april-2021/)
Plugin uses “wp_enqueue_scripts” WordPress action to load Javascript files. Check if everything is fine with this hook at your website. Drop this note to the support of Event Espresso plugin and ask if they have any idea about the same.’
Does this information help? The Sassy plug in works on other pages on the site. It seems like there is something preventing it from loading on posts created in Event Espresso.
The problem appears to be due to how Sassy Social Share is checking for specific post types before enqueuing the scripts.
To fix this go to Sassy Social Share -> Miscellaneous.
Find the option ‘Load Javascript only when needed’ and UNcheck it. Now save.
That forces Sassy to load the JavaScript it needs on all pages/posts and allows it to work for me.
—
The plugin is explicitly checking for a post type of ‘post’ and ‘page’ when adding the JavaScript. The other sections on your site are indeed posts or pages and so this works as expected there, but EE events are a custom post type which apparently the plugin allows for (it allows you to select them in settings) but doesn’t appear to actually check for those post types before adding the JavaScript.
The support post ‘Social Sharing Plug In using JS file won't load on my Event Espresso Page.’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.
Support forum for Event Espresso 3 and Event Espresso 4.