I want to add some CSS and JavaScript to the WordPress dashboard but only for my custom post type design and some script functionality.

Can any one suggest to me about how to include my custom CSS and JavaScript files for backend users?

  • Hi@Vivek you need to add css and javascript in your theme? – Samyappa Nov 30 '16 at 14:13
  • @Samyappa yes how it possible – Vivek Tamrakar Dec 5 '16 at 12:21

You have use admin_enqueue_scripts hook to include css and js in your backend.

So instead of:

add_action('wp_enqueue_scripts', 'your_function_name');


add_action('admin_enqueue_scripts', 'your_function_name_for_admin');

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.