Title: Linking HTML to CSS through functions.php file error
Last modified: August 24, 2018

---

# Linking HTML to CSS through functions.php file error

 *  [tothet](https://wordpress.org/support/users/tothet/)
 * (@tothet)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/linking-html-to-css-through-functions-php-file-error/)
 * I’m creating a custom theme.
    To link HTML to CSS, with the help of the community,
   and following [https://developer.wordpress.org/reference/functions/wp_enqueue_style/](https://developer.wordpress.org/reference/functions/wp_enqueue_style/)
   directions, I created a functions.php file with the following code
 *     ```
       <?php
       wp_enqueue_style ( string style.css, string $src = '', array $deps = array(), string|bool|null $ver = false, string $media = 'all' )
       	?>
       ```
   
 * I uploaded the file through BlueHost (my hosting service) File Manager.
    When
   I went back to my site I got a 505 error. I called BlueHost and they just told
   me to remove the functions.php file to bring the site back. The site is back 
   but the HTML and CSS files are not linked. Where did I mess up?
    -  This topic was modified 7 years, 11 months ago by [tothet](https://wordpress.org/support/users/tothet/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Flinking-html-to-css-through-functions-php-file-error%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [7 years, 11 months ago](https://wordpress.org/support/topic/linking-html-to-css-through-functions-php-file-error/#post-10619682)
 * That’s a definition for the function, not how you’d actually use it.
 * Look at how underscores (the Automattic starter theme) does it.
 * [https://github.com/Automattic/_s/blob/master/functions.php#L122](https://github.com/Automattic/_s/blob/master/functions.php#L122)
 *  Using _s as your model or starting from it ([http://underscores.me](http://underscores.me))
   is a god way to speed your custom theme development.

Viewing 1 replies (of 1 total)

The topic ‘Linking HTML to CSS through functions.php file error’ is closed to new
replies.

 * In: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
 * 1 reply
 * 2 participants
 * Last reply from: [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * Last activity: [7 years, 11 months ago](https://wordpress.org/support/topic/linking-html-to-css-through-functions-php-file-error/#post-10619682)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
