jquery code not working in avada theme
-
My jquery code is not working in avada theme.
I am attaching the code below i have written it in theme advance option inside script tag.<script> jQuery(document).ready(function($) { $(".adget_touch-tab").click(function(){ $(".adget_touch.scrollBar").toggleClass("open"); }); }); </script>
This is the html code:
<div id="get_touch" class="adget_touch side-right scrollBar" data-top="200px"> <div class="adget_touch-tab" roll="button" style="height: 130px;"> <div class="adget_touch-tab--copy" style="width: 130px;">Get In Touch</div> </div> <div class="adget_touch-block" style="min-height: 130px;"> <div class="adget_touch-block--copy"> <a href="#"> Contact Us </a> <br> <a href="#"> Subscribe </a> </div> </div> </div>
I have also tried to run the code from functions.php using wp_enqueue_scripts method that is also not working.
Can someone please help how to run jquery code in avada theme??
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘jquery code not working in avada theme’ is closed to new replies.