In header.php I can do the following:
<base href="<?php echo get_bloginfo('template_url');?>/"/>
That way I can keep my layout images path relative.
<img src="imgs/img.png"/>
Instead of
<img src="<?php echo get_bloginfo('template_url');?>"/>
Is there any downside of settings the base url? Any possible conflicts with wordpress?
get_bloginfo('template_url')
is deprecated in favor ofget_template_directory_uri()
. – mrwweb Aug 26 '14 at 20:59