I just tried installing my theme on another WP install that lies in a subdirectory of the domain. I never really thought too hard about subdirectories, but it does happen so I know I need to change it. Absolute URLS aren't feasible since I plan on distributing the theme.
The catch here is that the URL needs to work inside of an array more specifically with some themes settings. Here is how they look.
function mytheme_get_theme_mods() {
$defaults = array(
'mytheme_header_logo' => '/wp-content/themes/mytheme/img/logo.png',
'mytheme_footer_logo' => '/wp-content/themes/mytheme/img/footerlogo.png',
'mytheme_middle_image' => '/wp-content/themes/mytheme/img/middleimg.png'
);
return $defaults;
}
Can anyone help me out?