Title: wordpress  paths
Last modified: August 18, 2016

---

# wordpress paths

 *  Resolved [luckylisbon](https://wordpress.org/support/users/luckylisbon/)
 * (@luckylisbon)
 * [18 years, 12 months ago](https://wordpress.org/support/topic/wordpress-paths/)
 * I´m installed a fresh copy of wordpress, and I´m designing my new theme, but 
   whem I try to include javascript files on the header I have to give an absolute
   path to them i.e. [http:///www……/wp-content/themes/mytheme/js/file.js,but](https://wordpress.org/support/topic/wordpress-paths/?output_format=md)
   I remmember on older versions I had only to do wp-content/themes/etc
 * is this the new way?
 * And with images too, I have to give an absolute path

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

 *  [ceejayoz](https://wordpress.org/support/users/ceejayoz/)
 * (@ceejayoz)
 * [18 years, 12 months ago](https://wordpress.org/support/topic/wordpress-paths/#post-551240)
 * Use something like:
 * `<?php echo get_bloginfo('template_directory'); ?>/js/file.js`
 * That way, if someone renames the theme folder, or has the theme installed in 
   a subdirectory, it’ll still work.
 *  Thread Starter [luckylisbon](https://wordpress.org/support/users/luckylisbon/)
 * (@luckylisbon)
 * [18 years, 12 months ago](https://wordpress.org/support/topic/wordpress-paths/#post-551250)
 * I will try.
    Thank you

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

The topic ‘wordpress paths’ is closed to new replies.

## Tags

 * [paths](https://wordpress.org/support/topic-tag/paths/)

 * 2 replies
 * 2 participants
 * Last reply from: [luckylisbon](https://wordpress.org/support/users/luckylisbon/)
 * Last activity: [18 years, 12 months ago](https://wordpress.org/support/topic/wordpress-paths/#post-551250)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
