.js code that does not work in child theme
-
<script type="text/javascript"> jQuery(document).ready(function ($) { $('.tg-item').each(function () { $(this).find('a').removeAttr('href'); }); }); </script>
Meteorite
The .js code I added to header.php worked in the editor.Child theme
But it did not work when added to the file “my-custom-functions.js and functions.php”. I wonder why? I added it to the .js code field inside the gallery plugin, it works.
Viewing 10 replies - 1 through 10 (of 10 total)
Viewing 10 replies - 1 through 10 (of 10 total)
- The topic ‘.js code that does not work in child theme’ is closed to new replies.