Wordpress Javascript issue

Hi everyone,

I know there are tons of other posts here with the same issue. But the thing is: all the solutions don’t work for me, and I don’t know why.

Here’s the problem:

  • I exported the code of my pages (fully functional on Webflow. So far, so good)
  • I’m transforming it into a Custom Wordpress Theme, coding it by hand (I know my way around WP and love to use CMB2 in my projects).
  • I also linked the HTML info (data-wf-page & data-wf-site) correctly on the head.php, making it dynamic for each page (to follow the Webflow changes).
  • Then, after talking to a friend, I also added the “var $ = jQuery;” on the first line of my webflow.js to make it work properly. It does work, but only for my menu.

I have an accordion in the page, and it simply doesn’t work at all. I don’t know what else to do. :frowning:
Thoughts?

Glad this worked for you! how did you manage to make the html info dynamic if i may ask