For the admin side, the two actions you want are admin_enqueue_scripts
and admin_head-(plugin_page)
.
wp_enqueue_scripts
and wp_head
are only for the front end.
Related Posts:
- Enqueuing Script in functions.php vs on the page
- Not sure if enqueuing js scripts properly
- how to en-queue jQuery to load before the tag
- Attempt to change jQuery version caused White Screen of Death
- jQuery does not work
- In jquery use php variable to execute an enqueued jquery file
- Run a jquery script on on a certain template page
- wp_enqueue_script | Help me figure out what is causing jQuery is not defined
- How to load jQuery in TOP of wp_footer?
- Include Jquery libraries in wordpress theme?
- True parameter but jquery register in header and not in the footer with wp_register_script
- WordPress Jquery+scripts enqueue issue
- Add tags to the section via functions.php
- WordPress Enqueue for homepage only, functions.php, wp-framework
- Enqueue Script with data attributes
- Apply jquery script to only woocommerce product pages and categories
- Change meta tags programatically
- Replacing select2 in admin backend for all selects
- Most elegant way to enqueue scripts in function.php with foreach loop
- Problem using is_single() to enqueue script from functions.php
- Enqueuing External Javascript functions.php
- jQuery plugin function is not a function
- Unable to get_the_content(); of a post in WordPress via AJAX
- How to load some jquery code to make validation in the theme customizer?
- Trying to inject twitter metadata into using wp_head action in functions.php – get_the_excerpt() returns null
- Move jQuery and Migrate to footer?
- If is multiple page templates
- How do I edit wp_head and/or functions.php to remove rss-feed which isnt used and dont validate?
- How do I get a child theme to load scripts from the parent theme?
- Woocommerce checkout field maxlength, make input number field only (postcode)
- Load JS Script only for custom post types
- How to load jQuery in the footer – nothing works for me
- Allow Post Author to be 0 on Update
- Trouble with adding a wp_enqueue_script on wordpress
- WP Ajax Function Always Returning undefined
- How to search using ajax for exact phrase or words in an input field?
- enqueue styles for only mobile wp
- I can’t enqueue my scripts – They literally aren’t being added to my site
- Change CSS for logged in users
- Always the Latest google jQuery instead of default WordPress jQuery
- using jQuery on only one page
- Can’t call Javascript function – scope?
- Changing parent element’s class or style
- Auto Generated HTML source code formatting
- add_action wp_enqueue_script priority level only works for admins
- Scripts not loading when using the wp_enqueue_scripts action
- Adding jQuery datepicker to Custom Post Type Metabox [closed]
- Why does get_template_directory_uri() not include “www”, only for enqueued stylesheets?
- Add php code to wp_print_scripts?
- How can i unload effect.min.js file?
- Load JS file only in specific template
- How can I pass a shortcode value to the head in wordpress functions.php
- Auto scroll to id on page load on all pages except home page. Only do this on mobile
- WordPress can’t get jquery/unslider to work
- Add loggedout class on body using a function or JS
- Are innerHTML elements visible to jQuery functions?
- video.js not enqueueing?
- Problem enqueuing scripts on not single posts
- Why a SlideShow (made using JQuery FlexSlider) can’t work if I load it form functions.php but work if I load it from my footer.php file? [closed]
- Why I can’t load my JavaScripts using an hook inside my functions.php file?
- Creating multiple category drop down
- Function to echo (or display?) wordpress tags in the head section
- Enqueueing scripts selectively & activation where needed
- How to setup a popup registeration page in wordpress with function.php
- Get URLs for AJAX Filter Checkboxes WordPress
- wp_set_object_term via js btn frontend
- Advanced method to control cache of enqueued style/script
- Populate Product Regular Price with a calculated ACF Field Value
- Is it possible to load recaptcha script only in url with fragment identifier (#)?
- What is the earliest Hook a Script can use?
- WordPress does not load jQuery
- Hide author info in single posts by certain users
- post value to function with Ajax and jQuery
- WP Enqueue Script Error
- Multiple Notifications SetInterval
- How do i create a search option for pdf’s only
- How do I dequeue a Stylesheet, stored in an ‘Assets’ folder?
- I need to ‘wp_dequeue_script’ and ‘styles’ and ADD a bunch of other css and js
- I need to completely ‘wp_dequeue_script’; what’s the best way?
- Load scripts into an AJAX div
- Load scripts into an AJAX div
- Why is style.css not loading through the functions.php
- Different body image backgrounds on different pages, posts and categories
- How to wp_enqueue_script with html?
- custom post with loading script per single post
- wp_enqueue_script only works outside of action
- Why are some custom javascript files working but some are not
- WordPress Javascript Widget jQuery Dependency Issue
- jQuery HoverIntent is not a function
- java script error Uncaught SyntaxError: Unexpected token ILLEGAL
- using enqueue_script in a shortcode isn’t working
- enqueue script if page is not equal to
- wp_enqueue_scripts called twice?
- Having problems loading Jquery in functions.php
- new to javascript – using in instead of functions.php, not loading correctly
- AJAX values converted to PHP Variables?
- Animated Accordion [closed]
- wp_head not injecting css
- WordPress – Notice: Function wp_enqueue_script was called incorrectly
- Loading newest dependency javascript module file in functions.php