Get theme relative link, not absolute (no http!)
-
Hey guys
At the moment i use
bloginfo('template_directory');?>/img/mail.gif
which of course works and outputs…
src=”http://localhost/newsite/wp-content/themes/scotchegg/img/mail.gif”however here is the issue, i am want to test this from other machines on the network, and also a VM running IE6. In this case http://localhost will cause it to fail. So what I want is to get a pure relative link from index returned. so the output would be and used as..
src=”wp-content/themes/scotchegg/img/mail.gif”
Is there a WP function already to get this?
thanks
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Get theme relative link, not absolute (no http!)’ is closed to new replies.