I have a theme called Eternal with the following data in it's eternal.info file-
name = Eternal description = A Customized Drupal 7 Theme core = 7.x engine = phptemplate
In the template folder lies the page.tpl.php. Under the
/themes/ folder, the address becomes -
There are several lines inside the page.tpl.php that require I define a path for an image, like so-
<img src="images/facebook_icon.png" alt="image comes here">
/images/ folder is located inside the
/eternal/ folder, so to access it from
/templates/ one would need to travel one level up and then access the
/images/ folder. That would look like this -
The problem is, I cannot define a link that works in Drupal. And I'm sure the images exist in that directory.
I've tried these-
<img src="../images/facebook_icon.png" alt="image comes here">
<img src="images/facebook_icon.png" alt="image comes here"> <!-- not like this would have worked anyway -->
<img src="<?php drupal_get_path('theme', 'eternal'); ?>/images/facebook_icon.png" alt="image comes here">
It just shows the alt text in every case. No image. How to accomplish this and what is the recommended and proper way to do this?