Title: CSS not loading
Last modified: August 22, 2016

---

# CSS not loading

 *  [wpnici](https://wordpress.org/support/users/wpnici/)
 * (@wpnici)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/css-not-loading-7/)
 * Hello everyone,
 * I am a student and have to create a website for my company. Actually I do everything
   local and started to create a index.php and style.css. I already have a problem
   with this. My firebug says that there is no style.css but I have everything in
   the same folder and it should work. I used this for embedding the stylesheet:
 * <link rel=”stylesheet” href=”style.css” type=”text/css”>
 * I know that this worked with another template I made but I already deleted this
   one.
 * It would be so nice if you could help me 🙂
    wpnici

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

 *  [Andrew Nevins](https://wordpress.org/support/users/anevins/)
 * (@anevins)
 * WCLDN 2018 Contributor | Volunteer support
 * [11 years, 8 months ago](https://wordpress.org/support/topic/css-not-loading-7/#post-5332938)
 * You can’t put “style.css” in the href. It has to be a full path like “/wp-content/
   themes/yourTheme/style.css” and you should use a function to get the directory.
   Or even point straight to the style.css file:
    [http://codex.wordpress.org/Function_Reference/get_stylesheet_directory_uri](http://codex.wordpress.org/Function_Reference/get_stylesheet_directory_uri)
 * Use this as guidance for creating your own theme: [http://codex.wordpress.org/Theme_Development](http://codex.wordpress.org/Theme_Development)
 *  Thread Starter [wpnici](https://wordpress.org/support/users/wpnici/)
 * (@wpnici)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/css-not-loading-7/#post-5332950)
 * Is it right this way?:
 * <link rel=”stylesheet” href=”<?php include( get_stylesheet_directory() . ‘/wp-
   content/themes/myTheme/style.css’); ?>” type=”text/css”>
 *  [Andrew Nevins](https://wordpress.org/support/users/anevins/)
 * (@anevins)
 * WCLDN 2018 Contributor | Volunteer support
 * [11 years, 8 months ago](https://wordpress.org/support/topic/css-not-loading-7/#post-5332955)
 * No, this is:
 *     ```
       <link rel="stylesheet" href="<?php get_stylesheet_directory() ?>/style.css" type="text/css">
       ```
   
 *  Thread Starter [wpnici](https://wordpress.org/support/users/wpnici/)
 * (@wpnici)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/css-not-loading-7/#post-5332963)
 * It still doesn’t work :/
 * This is what my head looks loke actually:
 *     ```
       <head>
       		<meta charset="utf-8">
       		<title>Arakanga GmbH</title>
       		<link rel="stylesheet" href="<?php get_stylesheet_directory() ?>/style.css" type="text/css">
       	</head>
       ```
   
 * I don’t understand it because yesterday it worked with the normal HTML embedding.
 *  [Andrew Nevins](https://wordpress.org/support/users/anevins/)
 * (@anevins)
 * WCLDN 2018 Contributor | Volunteer support
 * [11 years, 8 months ago](https://wordpress.org/support/topic/css-not-loading-7/#post-5332965)
 * What error is Firebug giving you?
 *  Thread Starter [wpnici](https://wordpress.org/support/users/wpnici/)
 * (@wpnici)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/css-not-loading-7/#post-5332969)
 * Firebug says that there is no style defined.
 *  [Andrew Nevins](https://wordpress.org/support/users/anevins/)
 * (@anevins)
 * WCLDN 2018 Contributor | Volunteer support
 * [11 years, 8 months ago](https://wordpress.org/support/topic/css-not-loading-7/#post-5332971)
 * What is the entire error?
 *  Thread Starter [wpnici](https://wordpress.org/support/users/wpnici/)
 * (@wpnici)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/css-not-loading-7/#post-5332977)
 * Firebug doesn’t say more. The console is empty there are no warnings or mistakes
   listed. It just says that there is no CSS defined.
 * Can I embed here pictures somehow? Then I could show the console.
 *  [Andrew Nevins](https://wordpress.org/support/users/anevins/)
 * (@anevins)
 * WCLDN 2018 Contributor | Volunteer support
 * [11 years, 8 months ago](https://wordpress.org/support/topic/css-not-loading-7/#post-5332982)
 * You can [link to screenshots](http://snag.gy/). What does your HTML render for
   this <link> tag?
 *  Thread Starter [wpnici](https://wordpress.org/support/users/wpnici/)
 * (@wpnici)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/css-not-loading-7/#post-5332986)
 * The Link for the console: [http://snag.gy/AvVZK.jpg](http://snag.gy/AvVZK.jpg)
 * HTML says that the URL was not found on the server.
    “The link [reffering site](http://localhost/wordpress/)
   seems to be wrong or not current.”
 *  [Andrew Nevins](https://wordpress.org/support/users/anevins/)
 * (@anevins)
 * WCLDN 2018 Contributor | Volunteer support
 * [11 years, 8 months ago](https://wordpress.org/support/topic/css-not-loading-7/#post-5332989)
 * Can you copy the HTML for your rendered `<link>` tag, as seen in Firebug or when
   you view the source of your Webpage, and paste it here? Thanks.
 *  Thread Starter [wpnici](https://wordpress.org/support/users/wpnici/)
 * (@wpnici)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/css-not-loading-7/#post-5332991)
 * You mean this?
    [http://snag.gy/pVnAi.jpg](http://snag.gy/pVnAi.jpg)
 * It’s in german :/

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

The topic ‘CSS not loading’ is closed to new replies.

## Tags

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

 * 12 replies
 * 2 participants
 * Last reply from: [wpnici](https://wordpress.org/support/users/wpnici/)
 * Last activity: [11 years, 8 months ago](https://wordpress.org/support/topic/css-not-loading-7/#post-5332991)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
