WordPress Visual Composer, EventsPlus plugin and a.poplight[href^=#] syntax err
341
post-template-default,single,single-post,postid-341,single-format-standard,bridge-core-3.0.1,qodef-qi--no-touch,qi-addons-for-elementor-1.5.3,qode-page-transition-enabled,ajax_updown,page_not_loaded,,vertical_menu_enabled,side_area_uncovered_from_content,qode-theme-ver-28.7,qode-theme-bridge,disabled_footer_top,qode_header_in_grid,wpb-js-composer js-comp-ver-6.8.0,vc_responsive,elementor-default,elementor-kit-6

WordPress Visual Composer, EventsPlus plugin and a.poplight[href^=#] syntax err

WordPress Visual Composer, EventsPlus plugin and a.poplight[href^=#] syntax err

Today I came across a weird bug on a client’s wordpress site that broke Visual Composer. The Javascript console was reporting a a.poplight[href^=#] syntax err which seemed to indicate that popups were not working. Indeed, there was a section of the page with tabs that showed no content under the tabs.

After a bit of googling, I found this: https://wordpress.org/support/topic/since-wp-upgrade-with-event-reg-60202-apoplighthref-syntax-err

I found the offending code in wp-content/plugins/eventsplus/evrplus_public_script.js and replaced a.poplight[href^=#] with a.poplight[href*=\\#]

I did not check yet to see if EventsPlus has been updated as I was in a bit of a hurry, but everything is now working.

My guess is that jQuery got updated and it no longer recognizes the href^=# syntax.



Mastodon