aptdesignonline
Member
Posted 3 years ago #
Hi,
Ever since I've been using WordPress I am unable to use relative links when dropping images into header.php .
When using a WSIWYG editor like Dreamweaver I place the images from the themes/sandbox/images folder and it shows up in the application (with the path being images/logo.png). However, upon uploading everything to my live site the links are all broken.
Does WordPress do something that breaks relative links? Or am I missing something?
Thanks for your help!
Can you post a link to your site so I can see/visualise the problem correctly?
aptdesignonline
Member
Posted 3 years ago #
Thanks esmi,
The site is http://www.wenatcheefitnessblog.com
In the upper right of the header I've changed one of the images - "Subscribe" - back to relative linking and you can see it is broken. The rest of the header images are absolute links.
Because of the dynamic structure of WordPress, you can't use relative links in your theme php files or in pages or posts.
aptdesignonline
Member
Posted 3 years ago #
Ah, I see. Well, glad I wasn't doing anything wrong. Thanks Iridiax!