Title: CSS call on custom header
Last modified: August 20, 2016

---

# CSS call on custom header

 *  [Merthod](https://wordpress.org/support/users/merthod/)
 * (@merthod)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/css-call-on-custom-header/)
 * Hi, I have a couple of years in which I don’t code and I’ve forgot pretty much
   about everything. Geez!
 * So I want to do a custom template in my normal theme. This template is meant 
   to have its own header and footer. So I’ve created the header. However I also
   have a custom css file specifically done for this template… and I don’t know 
   how to call it!
 * The default header has this css call:
    `<link rel="stylesheet" type="text/css"
   href="<?php bloginfo('stylesheet_url'); ?>" media="screen" />`
 * I put this in my alternate header:
    `<link rel="stylesheet" type="text/css" href
   ="<?php bloginfo(TEMPLATEPATH . 'my_custom.css'); ?>" media="screen" />`
 * Surprisingly enough it doesn’t work. Can you direct me here please?

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

 *  [Andrew Nevins](https://wordpress.org/support/users/anevins/)
 * (@anevins)
 * WCLDN 2018 Contributor | Volunteer support
 * [13 years, 3 months ago](https://wordpress.org/support/topic/css-call-on-custom-header/#post-3422196)
 * In which directory is your file, ‘my_custom.css’?
 *  Thread Starter [Merthod](https://wordpress.org/support/users/merthod/)
 * (@merthod)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/css-call-on-custom-header/#post-3422202)
 * Hi Andrew,
 * the ‘my_custom.css’ is in the same folder as all the php template files (the 
   main theme folder). If possible I want to put it in a styles folder within this
   folder.
 *  [Andrew Nevins](https://wordpress.org/support/users/anevins/)
 * (@anevins)
 * WCLDN 2018 Contributor | Volunteer support
 * [13 years, 3 months ago](https://wordpress.org/support/topic/css-call-on-custom-header/#post-3422203)
 * Try this;
 *     ```
       <link rel="stylesheet" type="text/css" href="<?php bloginfo('stylesheet_directory'); ?>/my_custom.css" media="screen" />
       ```
   
 * _[http://codex.wordpress.org/Function\_Reference/bloginfo](http://codex.wordpress.org/Function_Reference/bloginfo)_

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

The topic ‘CSS call on custom header’ is closed to new replies.

 * 3 replies
 * 2 participants
 * Last reply from: [Andrew Nevins](https://wordpress.org/support/users/anevins/)
 * Last activity: [13 years, 3 months ago](https://wordpress.org/support/topic/css-call-on-custom-header/#post-3422203)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
