jQuery not executing in theme JS file
-
Hi,
I have added a custom-scripts.js file by enqueuing it via my functions.php file.
The file is appearing in my source code under jQuery, however, the scripts are not running. They work fine when run in console.
Does anyone know why this would be?
The code is as follows in my custom-scripts.js file:
$( document ).ready(function() { $("#button-6").appendTo(".button-6"); $("#button-5").appendTo(".button-5"); $("#button-4").appendTo(".button-4"); $("#button-3").appendTo(".button-3"); $("#button-2").appendTo(".button-2"); $("li.signup a").remove();$("#button-1").appendTo("li.signup").addClass("signup-top"); $("li.signup-footer a").remove();$("#button-7").appendTo("li.signup-footer");Any ideas would be great, thanks
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘jQuery not executing in theme JS file’ is closed to new replies.