Title: linking so CSS, Scripts from header.php
Last modified: August 19, 2016

---

# linking so CSS, Scripts from header.php

 *  Resolved [flyagaricus](https://wordpress.org/support/users/flyagaricus/)
 * (@flyagaricus)
 * [15 years, 12 months ago](https://wordpress.org/support/topic/linking-so-css-scripts-from-headerphp/)
 * Hi there
 * I want to add my own scripts and external CSS stylesheets to header.php, but 
   using relative paths to these sources comes up empty. I can’t even embed an image.
 * I added my javascripts to a “script” folder withing the theme directory, adn 
   use a path like this:
 * `<script language="javascript" src="scripts/myScript.js"></script>`
 * any idea why these paths won’t work?
 * thanks

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

 *  [Clayton James](https://wordpress.org/support/users/claytonjames/)
 * (@claytonjames)
 * [15 years, 12 months ago](https://wordpress.org/support/topic/linking-so-css-scripts-from-headerphp/#post-1521844)
 * Did you try option 2 yet?
 * `<script type="text/javascript" src="<?php bloginfo('template_url'); ?>/scripts/
   myScript.js"></script>`
 * [Javascript in Template Files](http://codex.wordpress.org/Using_Javascript#Javascript_in_Template_Files)
 * Same thing might apply to your style sheet.
 * [http://codex.wordpress.org/Function_Reference/get_bloginfo](http://codex.wordpress.org/Function_Reference/get_bloginfo)
 *  Thread Starter [flyagaricus](https://wordpress.org/support/users/flyagaricus/)
 * (@flyagaricus)
 * [15 years, 12 months ago](https://wordpress.org/support/topic/linking-so-css-scripts-from-headerphp/#post-1521868)
 * thanks, this worked.
 *  [Clayton James](https://wordpress.org/support/users/claytonjames/)
 * (@claytonjames)
 * [15 years, 12 months ago](https://wordpress.org/support/topic/linking-so-css-scripts-from-headerphp/#post-1521877)
 * you’re welcome.

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

The topic ‘linking so CSS, Scripts from header.php’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [Clayton James](https://wordpress.org/support/users/claytonjames/)
 * Last activity: [15 years, 12 months ago](https://wordpress.org/support/topic/linking-so-css-scripts-from-headerphp/#post-1521877)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
