Title: CSS won&#039;t work
Last modified: August 30, 2016

---

# CSS won't work

 *  Resolved [Pirkum-Powder](https://wordpress.org/support/users/pirkum-powder/)
 * (@pirkum-powder)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/css-wont-work/)
 * I’ve tried all sorts of different methods to get the CSS stylesheet working but
   nothing’s working. Can someone help me?
 * [Here’s the link to my page.](http://localhost:42945/)

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

 *  [stephencottontail](https://wordpress.org/support/users/stephencottontail/)
 * (@stephencottontail)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/css-wont-work/#post-6280127)
 * You’ve posted a link to `localhost`, which is just a fancy way of saying “the
   computer you’re currently using”, so it won’t work for anyone but you. Do you
   have an actual website or are you developing locally with something like XAMPP?
   What theme are you using?
 *  Thread Starter [Pirkum-Powder](https://wordpress.org/support/users/pirkum-powder/)
 * (@pirkum-powder)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/css-wont-work/#post-6280129)
 * No. The problem is with my theme. I can’t get the CSS behind my theme to work.
   Is there any way to show you the code without just copy and pasting everything?
 *  [mrtom414](https://wordpress.org/support/users/mrtom414/)
 * (@mrtom414)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/css-wont-work/#post-6280131)
 * what theme are you using ?
 *  [stephencottontail](https://wordpress.org/support/users/stephencottontail/)
 * (@stephencottontail)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/css-wont-work/#post-6280134)
 * How are you loading your stylesheet? Is the problem that the stylesheet isn’t
   being loaded or is the problem that the styles within the stylesheet aren’t being
   applied properly?
 *  Thread Starter [Pirkum-Powder](https://wordpress.org/support/users/pirkum-powder/)
 * (@pirkum-powder)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/css-wont-work/#post-6280135)
 * I’m making my own theme.
 *  Thread Starter [Pirkum-Powder](https://wordpress.org/support/users/pirkum-powder/)
 * (@pirkum-powder)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/css-wont-work/#post-6280137)
 * The style sheet isn’t loading at all.
 * And here’s the method I used for loading it (It’s in a file called function.php)
 * <?php
 * function learningWordPress_resources(){
 *  wp_enqueue_style(‘style’, get_stylesheet_uri());
 * }
 * add_action(‘wp_enqueue_scripts’, ‘learningWordPress_resources’);
 *  [mrtom414](https://wordpress.org/support/users/mrtom414/)
 * (@mrtom414)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/css-wont-work/#post-6280139)
 * are you using wp_enqueue_style
    ?
 *  Thread Starter [Pirkum-Powder](https://wordpress.org/support/users/pirkum-powder/)
 * (@pirkum-powder)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/css-wont-work/#post-6280140)
 * Yes
 *  [stephencottontail](https://wordpress.org/support/users/stephencottontail/)
 * (@stephencottontail)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/css-wont-work/#post-6280141)
 * Is the file named `function.php` or `functions.php`? It needs to be named `functions.
   php`, plural.
 *  [mrtom414](https://wordpress.org/support/users/mrtom414/)
 * (@mrtom414)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/css-wont-work/#post-6280142)
 * you need to add the name of your style sheet to the statement
 * wp_enqueue_style(‘style’, get_stylesheet_uri());
 *  Thread Starter [Pirkum-Powder](https://wordpress.org/support/users/pirkum-powder/)
 * (@pirkum-powder)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/css-wont-work/#post-6280143)
 * Hmmm. Okay, lemme try that. Hang on
 *  [mrtom414](https://wordpress.org/support/users/mrtom414/)
 * (@mrtom414)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/css-wont-work/#post-6280144)
 * should be something like
 * wp_enqueue_style(‘style’, get_stylesheet_uri(). “/mystyle.css”);
 *  Thread Starter [Pirkum-Powder](https://wordpress.org/support/users/pirkum-powder/)
 * (@pirkum-powder)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/css-wont-work/#post-6280145)
 * YAY! It’s working now! Thank you both 😀

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

The topic ‘CSS won't work’ is closed to new replies.

## Tags

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

 * 13 replies
 * 3 participants
 * Last reply from: [Pirkum-Powder](https://wordpress.org/support/users/pirkum-powder/)
 * Last activity: [10 years, 11 months ago](https://wordpress.org/support/topic/css-wont-work/#post-6280145)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
