• 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)
  • Why aren’t you asking at the theme’s support forum? This forum is for WordPress.
    Does the theme enqueue jQuery?
    Have you looked at the Javascript console to see if there is an error?

    Moderator Jose Castaneda

    (@jcastaneda)

    THEME COFFEE MONKEY

    Hi there!

    Can someone please help how to run jquery code in avada theme??

    As this is a purchased theme we wouldn’t have readily available access to that theme’s codebase. Many on these forums would not be familiar with it either. Have you tried reaching through their support channels yet?

    As for the jQuery code, does it run if you use a different theme? Does it run if you try deactivating all plugins?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘jquery code not working in avada theme’ is closed to new replies.