html - Path to image within multiple directories -
I am having trouble linking one image with one file in a sub-directory.
The main theme / parts / share / header.php .. The main theme / I logo.png image Want to link to I have tried every option that I can think of .. / It would mean climbing with header.php, but it can not work what I should do because they always very high jumping main Theme , because you have mentioned that you are using WordPress: I believe this is the correct way to handle within WordPress. It has the advantage of using a full path, but when you go from a local host to a live domain you will automatically adjust.
& lt; Img src = "picture / logo.png" />
and Edit
& lt; Img src = "& lt ;? php bloginfo ('template_directory') ;;> /images/logo.png" />
Comments
Post a Comment