0

I want to include backend buttons css on frontend in a plugin?

This is how its inluded in backend:

http://localhost/wp-admin/load-styles.php?c=1&dir=ltr&load=admin-bar,wp-admin,buttons,wp-auth-check&ver=3.6.1

How to include it in the frontend?

0

Try -

add_action('wp_enqueue_scripts', 'wpse_wp_enqueue_scripts');
function wpse_wp_enqueue_scripts(){
    wp_enqueue_style('buttons');
}
| improve this answer | |
  • Please add an explanation to what you just gave. A code-only answer is not a good answer. – Mayeenul Islam Feb 23 '14 at 8:17
  • Shazzad is enqueuing the built in WordPress style used for buttons on the front end. It's quite straight forward to be fair. I would recommend, if needed, the user looked further into wp_enqueue_style() to get more details on it if they needed it. – Steven Jones Feb 23 '14 at 17:28

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.