0

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?

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

1 Answer 1

1

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');

Use:

add_action('admin_enqueue_scripts', 'your_function_name_for_admin');

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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