Why my local image is only found when using bloginfo('template directory')
-
I’m trying to understand how this works. I have images stored in a subdirectory “images” within my theme folder. I tried using all sorts of paths and only the anchor was showing so it couldn’t find image until I used:
<img id=”about” src=”<?php bloginfo(‘template_directory’);?>/images/about.jpg” alt=”about”>
I am inserting the image into my page.php file. My question is what kind of path do I need to use for wordpress to find my folder without using bloginfo?
Thanks!
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Why my local image is only found when using bloginfo('template directory')’ is closed to new replies.