Title: Custom Stylesheet
Last modified: August 19, 2016

---

# Custom Stylesheet

 *  Resolved [cableghost](https://wordpress.org/support/users/cableghost/)
 * (@cableghost)
 * [16 years, 5 months ago](https://wordpress.org/support/topic/custom-stylesheet/)
 * I am using a theme that gets periodic updates. I also have made several modifications
   to the theme’s stylesheet. My problem is that on every theme update, I must go
   back into the stylesheet and re-modify the css.
 * I am therefore, trying to generate a modification-only stylesheet that my theme
   will recognize and will use the modified code over the standard stylesheet.
 * Below is the theme’s stylesheet section in the header, with my modifications 
   stylesheet as the last bit of code (scotts.css).
 * I cannot get this to work…any ideas?
 *     ```
       <!--
       Stylesheet
       ~~~ -->
   
       <?php if (function_exists('hmt_extras')) { 				// Extras plugin? Then go get the css ?>
       	<link rel="stylesheet" href="<?php bloginfo('wpurl'); ?>/wp-content/plugins/heatmap-extras/menu.css" type="text/css" media="screen" />
       <?php } ?>
   
       <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
   
       <?php if (!function_exists('hmt_child_theme')) { 				// If there is no child theme then grab the default.css instead ?>
       	<link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/default.css" type="text/css" media="screen" />
       <?php } ?>
   
       <?php $stylesheetfile = STYLESHEETPATH . '/css/scotts.css'; ?>
       <link rel="stylesheet" href="<?php echo $stylesheetfile; ?>" type="text/css" media="screen" />
       ```
   
 * -Scott

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

 *  [Peter Boosten](https://wordpress.org/support/users/pboosten/)
 * (@pboosten)
 * [16 years, 5 months ago](https://wordpress.org/support/topic/custom-stylesheet/#post-1303092)
 * As far as I can tell is the closing php tag part of the comment, and therefore
   the `<link` thingemy isn’t recognized as html.
 * Peter
 *  Thread Starter [cableghost](https://wordpress.org/support/users/cableghost/)
 * (@cableghost)
 * [16 years, 5 months ago](https://wordpress.org/support/topic/custom-stylesheet/#post-1303318)
 * Thanks Peter, though that was not it. For others, I had to make the following
   edit:
 *     ```
       <?php $stylesheetfile = '../css/scotts.css'; ?>
       <link rel="stylesheet" href="<?php echo $stylesheetfile; ?>" type="text/css" media="screen" />
       ```
   
 * -Scott

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

The topic ‘Custom Stylesheet’ is closed to new replies.

## Tags

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

 * 2 replies
 * 2 participants
 * Last reply from: [cableghost](https://wordpress.org/support/users/cableghost/)
 * Last activity: [16 years, 5 months ago](https://wordpress.org/support/topic/custom-stylesheet/#post-1303318)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
