Where I can put JS?
‘Here is the Javascript. You can put this in your custom.js file or in the head of your theme.
Important: make sure you are already including the jQuery library as it is needed for the rest of the js to work”
jQuery(function($){ $(document).ready(function(){ $(".toggle_container").hide(); $("h3.trigger").click(function(){ $(this).toggleClass("active").next().slideToggle("normal"); return false; //Prevent the browser jump to the link anchor }); }); });
I need this for this toggle shortcode:
http://www.wpexplorer.com/wordpress-toggle-shortcode/
Thanx
Hi Evilmc
Give the following plugin a try:
https://wordpress.org/plugins/header-and-footer-scripts/
The script you’ve listed above will need to be wrapped in a script tag:
Header and Footer Scripts plugin will provide a field for you to use.
I add script, but again not works :/
Hi :)
Inserting the script is one challenge, sounds like we’ve made progress with that.
Getting the script to work is ideally something that would need to happen on your side, it’s more of a custom development task.
If you need toggles then I’d recommend a plugin like this:
https://wordpress.org/plugins/whistles/