Why wp_enqueue_style() not Working?

wordpress-functions
  • First step is to ensure you are using the correct path of the CSS file.
  • For the responsive Directory use
get_template_directory_uri()

Example:

print( get_template_directory_uri() . '/css/bootstrap.min.css' );
  • The second step is to ensure that wp_head() is being called on the page you are displaying. It can be placed in your header template (in between <head></head tags) or on top of archives/post files etc. This function actually renders the styles and scripts on the page. Without wp_head(), it is basically useless to enqueue anything as you can add links and scripts manually if you know the exact paths.

Leave a comment

Your email address will not be published. Required fields are marked *