$base_url not working when in anchor link to theme folder
Try this...

In your themes template...

function YOURTHEME_preprocess_page(&amp;$variables) {
   global $base_url;
   $variables['base_url'] = $base_url;
}


In page template...

$base_url;