// For Search Icon Toggle effect added at the top jQuery(document).ready(function(){ jQuery('.search-top').click(function(){ jQuery('#masthead .search-form-top').toggle(); }); }); jQuery(document).ready(function(){ jQuery('#scroll-up').hide(); jQuery(function () { jQuery(window).scroll(function () { if (jQuery(this).scrollTop() > 1000) { jQuery('#scroll-up').fadeIn(); } else { jQuery('#scroll-up').fadeOut(); } }); jQuery('a#scroll-up').click(function () { jQuery('body,html').animate({ scrollTop: 0 }, 800); return false; }); }); }); jQuery(document).ready(function() { jQuery('.better-responsive-menu #site-navigation .menu-item-has-children').append(' '); jQuery('.better-responsive-menu #site-navigation .sub-toggle').click(function() { jQuery(this).parent('.menu-item-has-children').children('ul.sub-menu').first().slideToggle('1000'); jQuery(this).children('.fa-caret-right').first().toggleClass('fa-caret-down'); jQuery(this).toggleClass('active'); }); });