Support

Home Forums Event Espresso Premium Social Sharing Plug In using JS file won't load on my Event Espresso Page.

Social Sharing Plug In using JS file won't load on my Event Espresso Page.

Posted: April 13, 2021 at 8:11 am


screenskillnet

April 13, 2021 at 8:11 am

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?


Tony

  • Support Staff

April 13, 2021 at 10:34 am

Hi there,

May I ask, which ‘Social Sharing’ plugin are you referring to?

Can you add more details on what the error is?

Which Event Espresso page do you mean? Single events? Frontend or admin?

We need some more specific details to be able to help with this πŸ™‚


screenskillnet

April 14, 2021 at 2:37 am

Hi, Thanks so much for getting back.

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.

Thanks again for your help.


Tony

  • Support Staff

April 14, 2021 at 4:34 am

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.


screenskillnet

April 15, 2021 at 2:28 am

Do you have any insight into this?
Thank you


screenskillnet

April 15, 2021 at 2:30 am

Ignore above. I forgot to refresh my page and didn’t see your reply πŸ™‚
Thank you so much. I’ll see if this works.


screenskillnet

April 15, 2021 at 2:34 am

That fixed the issue.
Thank you.


Tony

  • Support Staff

April 15, 2021 at 3:58 am

You’re most welcome πŸ™‚

Any further issues/questions just let us know.

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.

Event Espresso