Title: Load javascript file after clicking filter
Last modified: August 29, 2023

---

# Load javascript file after clicking filter

 *  [Nathan](https://wordpress.org/support/users/natedanielz/)
 * (@natedanielz)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/load-javascript-file-after-clicking-filter/)
 * Hi, after clicking a filter I need a javascript file to load, because when I 
   click the filter the page/products reload(s) and the hover effect of the products
   is gone.
 * I’ve tried it using this script, but it isn’t working:
 * jQuery(document).ready(function($) {
   $(“.wpf_item li”).click(function(){$.getScript(“
   [https://juneandcharlie.nl/wp-content/plugins/ddprodm/build/ragnar/js/ragnar-shop-landing-v2/ragnarProductsOlivia.js?ver=6.2.2&#8221](https://juneandcharlie.nl/wp-content/plugins/ddprodm/build/ragnar/js/ragnar-shop-landing-v2/ragnarProductsOlivia.js?ver=6.2.2&#8221););});});
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fload-javascript-file-after-clicking-filter%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Plugin Author [themifyme](https://wordpress.org/support/users/themifyme/)
 * (@themifyme)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/load-javascript-file-after-clicking-filter/#post-17010558)
 * Hi Nathan,
 * That requires modifying the plugin’s code, unfortunately we can not assist with
   that as support, please hire a web-developer who can help you with that.

Viewing 1 replies (of 1 total)

The topic ‘Load javascript file after clicking filter’ is closed to new replies.

 * ![](https://ps.w.org/themify-wc-product-filter/assets/icon-128x128.png?rev=1535808)
 * [Themify - WooCommerce Product Filter](https://wordpress.org/plugins/themify-wc-product-filter/)
 * [Support Threads](https://wordpress.org/support/plugin/themify-wc-product-filter/)
 * [Active Topics](https://wordpress.org/support/plugin/themify-wc-product-filter/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/themify-wc-product-filter/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/themify-wc-product-filter/reviews/)

## Tags

 * [javascript](https://wordpress.org/support/topic-tag/javascript/)
 * [jquery](https://wordpress.org/support/topic-tag/jquery/)

 * 1 reply
 * 2 participants
 * Last reply from: [themifyme](https://wordpress.org/support/users/themifyme/)
 * Last activity: [2 years, 9 months ago](https://wordpress.org/support/topic/load-javascript-file-after-clicking-filter/#post-17010558)
 * Status: not resolved