JavaScript filtering function totally stuck in WP

Hi guys - I had my javascript to filtering and it worked great in Codepen. I just transferred it to a WP page and the “active” parts of the JS is kind of stuck. The buttons work but not fully (no display on default even though ALL should display.

Update: This is solved. Wordpress have specific display on JS and more.


In the functions.php, add:

function my_theme_scripts_function() {

  wp_enqueue_script( 'myscript', get_template_directory_uri() . '/js/myscript.js');



And then just put your in your content through the editor in WP.


This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.