So, I'm trying to add get_template_directory_uri or bloginfo() to my header.php file to create relative paths for the CSS and JS files in the theme.
<link rel="stylesheet" href="<?php echo get_template_directory_uri(); ?>/css/style.css">
In theory this should show
<link rel="stylesheet" href="http://mysite.com/wp-content/themes/myTheme/css/style.css">
Problem is, when I view the
<head> tag in source all I see is:
<link rel="stylesheet" href="/css/style.css">
All the other template tags work in my files (get_permalink(), the_title(), etc.), but this one isn't.
echo get_bloginfo('url') Also works.
I was thinking of messing with the
wp-config.php file and doing something like:
...but, I'm not sure if that's the best practice for rewriting the URL.
Am I missing something?