Lyden
Forum Replies Created
Viewing 6 replies - 1 through 6 (of 6 total)
-
Forum: Fixing WordPress
In reply to: Can't Run JavaScript from Custom Widgetanyone?
Forum: Fixing WordPress
In reply to: Can't Run JavaScript from Custom Widgetin the post above, it should say: “from a test HTML page” not: “from a test HTML script.” Sorry for confusion
Forum: Fixing WordPress
In reply to: Can't Run JavaScript from Custom Widgetanyone?
Forum: Plugins
In reply to: wp_enqueue_script problemSolved it. For some reason, you can’t use the wp_head action. This is very unintuitive. You would think that since you include external scripts via <script> tags in the head, you would use the wp_head action.
I changed:
add_action('wp_head', 'add_header_scripts');To:
add_action('init', 'add_header_scripts');Forum: Hacks
In reply to: wp_enqueue_script problemSolved it. For some reason, you can’t use the wp_head action. This is very unintuitive. You would think that since you include external scripts via <script> tags in the head, you would use the wp_head action.
I changed:
add_action('wp_head', 'add_header_scripts');To:
add_action('init', 'add_header_scripts');Forum: Plugins
In reply to: wp_enqueue_script problemEdited
Viewing 6 replies - 1 through 6 (of 6 total)