Using relative instead of absolute links for images?
-
I am starting to really like wordpress. It is quite easy to use but I still get hiccups every once in a while.
When I make a post I may have images I want to use. I store these images in:
https://www.mydomain.com/images
when I would make a post I would use the following code to insert an image.
<img src="images/image.jpg"/>
but… the image would not show or give that paper icon with an “x” to show that the file could not be found.
So to get it to work I would have to use this:
<img src="https://www.mydomain.com/images/image.jpg"/>
I prefer not to code this way, but I am not sure how to make this work.. .Any ideas? is this because I should be using the “images” directory within my theme folder?
Thanks for any help.
- The topic ‘Using relative instead of absolute links for images?’ is closed to new replies.