Correctly enqueue scripts
-
In your toc.php file you have the following on line 126:
add_action( 'init', array(&$this, 'init') );This should use the wp_enqueue_scripts action, like so:
add_action( 'wp_enqueue_scripts', array(&$this, 'init') );The incorrect addition of scripts was breaking properly enqueued scripts on my site.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘Correctly enqueue scripts’ is closed to new replies.