image paths – local vs live
-
I created a wordpress site and I stored all of my images in an images folder within the root wordpress folder. Whilst the website was local on my computer, I merely used ‘/images/image-name.png’ and everything would always lead to this folder. I have since uploaded the website to my server. Now my image paths are not working the same as they did locally. For my homepage (which was set to homepage in the settings tab), I just had to remove the first ‘/’ leaving the path ‘images/image-name.png’ however this does not work for other pages. For instance, header.php works just fine in the homepage, but the images do not display in alternate pages, yet they all just use the <? php get_footer(); ?> tag. If header.php works just fine on the homepage, why wouldn’t it work just fine in subsequent pages? Everything worked just fine locally, I am confused. Does anyone have any insight into this situation? Thanks!
- The topic ‘image paths – local vs live’ is closed to new replies.