 <p>The relative links are returned from the get_template_directory_uri() function.</p> <p>It probably returns a string that looks like this : "/path/to/file.jpg"</p> <p>I have no experience in wordpress but making relative links isn't specifically a php thing.</p>