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? Commented Nov 30, 2016 at 14:13
  • @Samyappa yes how it possible Commented 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.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.