0

How can i load same style sheet for both front end and wp-admin of a wordpress site

3

Use special hooks
For Admin panel:

add_action('admin_enqueue_scripts', 'enqueue_scripts_and_styles_function');

For Front-end:

add_action('wp_enqueue_scripts', 'enqueue_scripts_and_styles_function');

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.