Title: wp_enqueue_styles not doing anything&#8230;
Last modified: August 21, 2016

---

# wp_enqueue_styles not doing anything…

 *  [op1001](https://wordpress.org/support/users/op1001/)
 * (@op1001)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/wp_enqueue_styles-not-doing-anything/)
 * Hello,
 * I downloaded the underscore starter template… and cleared the function file so
   i can start fresh..
 * I was putting this into my template from :
    [http://generatewp.com/register_style/](http://generatewp.com/register_style/)
 *     ```
       // Register Style
       function demo_styles() {
   
       	wp_register_style( 'menu', 'css/menu.css', false, false );
       	wp_enqueue_style( 'menu' );
   
       }
   
       // Hook into the 'wp_enqueue_styles' action
       add_action( 'wp_enqueue_styles', 'demo_styles' );
       ```
   
 * I figured this is the proper way to put the CSS styles … but it is not loading
   anything… even if i remove wp_register_style and replace it with wp_enqueue_style…
 * i check the source code.. and nothing shows up… i even copied the same lines 
   to the twenty fourteen template and it won’t work..

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Moderator [keesiemeijer](https://wordpress.org/support/users/keesiemeijer/)
 * (@keesiemeijer)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/wp_enqueue_styles-not-doing-anything/#post-4522489)
 * Have you looked in the source code if the link to your stylesheet is output?
 * Is the menu folder a folder in your theme? If so you’ll need to use get_template_directory_uri()
   or get_stylesheet_directory_uri() to get the correct url to your theme:
    [http://codex.wordpress.org/Function_Reference/wp_enqueue_style#Examples](http://codex.wordpress.org/Function_Reference/wp_enqueue_style#Examples)
 * [http://codex.wordpress.org/Function_Reference/get_stylesheet_directory_uri](http://codex.wordpress.org/Function_Reference/get_stylesheet_directory_uri)
   
   [http://codex.wordpress.org/Function_Reference/get_template_directory_uri](http://codex.wordpress.org/Function_Reference/get_template_directory_uri)
 *  [Dave Naylor](https://wordpress.org/support/users/wpranger/)
 * (@wpranger)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/wp_enqueue_styles-not-doing-anything/#post-4522496)
 * Try changing: `add_action( 'wp_enqueue_styles', 'demo_styles' );`
 * to: `add_action( 'wp_enqueue_scripts', 'demo_styles' );`
 *  Thread Starter [op1001](https://wordpress.org/support/users/op1001/)
 * (@op1001)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/wp_enqueue_styles-not-doing-anything/#post-4522562)
 * Hello,
 * add_action( ‘wp_enqueue_styles’, ‘demo_styles’ ); will not work no matter what…
   i’ve tried all the default themes in wordpress, even deleting everything in the
   function.php –
 * also when you view the source code it doesn’t show..
 * add_action( ‘wp_enqueue_scripts’, ‘demo_styles’ ); => this works just fine..
 * but i figured wp_enqueue_styles was proper coding as well but it wont work? maybe
   it is a bug?
 *  [Dave Naylor](https://wordpress.org/support/users/wpranger/)
 * (@wpranger)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/wp_enqueue_styles-not-doing-anything/#post-4522680)
 * I wrote to the GenerateWP guys, pointing out that wp_enqueue_styles doesn’t actually
   exist in core. They fixed their site accordingly:
 * [http://generatewp.com/register_style/](http://generatewp.com/register_style/)
 *  [A. Jones](https://wordpress.org/support/users/nomadcoder/)
 * (@nomadcoder)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/wp_enqueue_styles-not-doing-anything/#post-4522723)
 * It looks like this issue was fixed recently in WordPress.
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/wp_enqueue_styles-not-doing-anything/#post-4522724)
 * There was never an issue in WordPress core relating to wp_enqueue_styles(), so
   there was nothing to “fix”.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘wp_enqueue_styles not doing anything…’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 6 replies
 * 5 participants
 * Last reply from: [esmi](https://wordpress.org/support/users/esmi/)
 * Last activity: [11 years, 11 months ago](https://wordpress.org/support/topic/wp_enqueue_styles-not-doing-anything/#post-4522724)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
