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 & lt; Img src = "picture / logo.png" />

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

  and  Edit   

, because you have mentioned that you are using WordPress:

  & lt; Img src = "& lt ;? php bloginfo ('template_directory') ;;> /images/logo.png" />   

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.

Comments

Popular posts from this blog

ios - Adding an SKSpriteNode to SKScene from a child SKSpriteNode -

Matlab transpose a table vector -

c# - Textbox not clickable but editable -