How to make jQuery script work in WP?
-
The jQuery script is a product filter. It is very much like this in the Portfolio section, you click on Web Design, Photography etc and the thumbnails rearranger accordingly:
Jsfiddle is here jsfiddle
I removed extra code and functions.
1. In HTML — href=”#filter” <– this is what fires up the script when you click on it.
2. section id=”project” <– is what the jQuery script it tied to
3. var $container = $(‘#project’); <– JS. So this is how it knows to which section it should apply to.
Its not working I think because of the way WP treats href=”#filter” ? Is there a way to fix this?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘How to make jQuery script work in WP?’ is closed to new replies.