-1

Anyone know how to load css file in my menu in wordpress. use this but it didn't work

function wmt_theme_style() {
  wp_enqueue_style( 'bootstrap-styles', get_template_directory_uri() . '/css/bootstrap.css', array(), '3.3.4', 'all' );
 
}
add_action( 'wp_enqueue_scripts', 'wmt_theme_style' );

enter image description here

0

You need to use the admin_enqueue_scripts hook. As you can imagine, you're not the first one to attempt that: Wordpress admin stylesheet

| improve this answer | |

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.