Title: Can&#039;t enqueue css
Last modified: August 21, 2016

---

# Can't enqueue css

 *  [nmabhinandan](https://wordpress.org/support/users/nmabhinandan/)
 * (@nmabhinandan)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/cant-enqueue-css/)
 * functions.php
 *     ```
       function load_stuff() {
           if (!is_admin()) {
               wp_register_style('font-awesome', get_stylesheet_directory_uri() . '/css/font-awesome.min.css', array(), '20120208', 'all');
               wp_enqueue_style('font-awesome');
           }
       }
   
       add_action('wp_enqueue_scripts', 'load_stuff');
       ```
   
 * This is not working. I even tried `bloginfo('template_url')` instead of `get_stylesheet_directory_uri()`
   but it isn’t working

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

 *  [Andrew Nevins](https://wordpress.org/support/users/anevins/)
 * (@anevins)
 * WCLDN 2018 Contributor | Volunteer support
 * [12 years, 6 months ago](https://wordpress.org/support/topic/cant-enqueue-css/#post-4291559)
 * What do you mean by “not working”?
 *  [Jesin A](https://wordpress.org/support/users/jesin/)
 * (@jesin)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/cant-enqueue-css/#post-4291562)
 * Try this
 *     ```
       function load_stuff() {
               wp_enqueue_style('font-awesome', get_stylesheet_directory_uri() . '/css/font-awesome.min.css', array(), '20120208', 'all');
       }
   
       add_action('wp_enqueue_scripts', 'load_stuff');
       ```
   
 * The `is_admin()` check isn’t required because
 * > wp_enqueue_scripts is the proper hook to use when enqueuing items that are 
   > meant to appear on the **front end**.
 * More info
    [http://codex.wordpress.org/Plugin_API/Action_Reference/wp_enqueue_scripts](http://codex.wordpress.org/Plugin_API/Action_Reference/wp_enqueue_scripts)
   [http://codex.wordpress.org/Function_Reference/wp_enqueue_style](http://codex.wordpress.org/Function_Reference/wp_enqueue_style)

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

The topic ‘Can't enqueue css’ is closed to new replies.

## Tags

 * [enqueue](https://wordpress.org/support/topic-tag/enqueue/)

 * 2 replies
 * 3 participants
 * Last reply from: [Jesin A](https://wordpress.org/support/users/jesin/)
 * Last activity: [12 years, 6 months ago](https://wordpress.org/support/topic/cant-enqueue-css/#post-4291562)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
