Forum Replies Created

Viewing 46 replies (of 46 total)
  • Thread Starter cucocreative

    (@cucocreative)

    the only thing that may help within this page: https://codex.www.ads-software.com/Function_Reference/wp_enqueue_script

    is to add a block of code to the functions.php but then that will mean the javascript files are called on every page which I don’t want.

    What I don’t understand is why is problem is with only 3 out of the 5 javascript files I’m including, it load the last two fine:

    <script type="text/javascript" src="https://www.cucocreative.co.uk/my_scripts/script.js"></script>
    
    <script type="text/javascript">
    $(document).ready(function(){
    
    	$(".btn-slide").mouseenter(function(){
    		$("#sneekyPanel").animate({'height' : "68px"}, "fast");
    	})
    	$(".btn-slide").mouseleave(function(){
    		$("#sneekyPanel").animate({'height' : "34px"}, "slow");
    
    	})
    
    });
    </script>

    Also why does it work fine, if I am logged in as an admin?

Viewing 46 replies (of 46 total)