Relative Links not Working (5 posts)

  1. aptdesignonline
    Posted 6 years ago #


    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!

  2. esmi
    Forum Moderator
    Posted 6 years ago #

    Can you post a link to your site so I can see/visualise the problem correctly?

  3. aptdesignonline
    Posted 6 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.

  4. iridiax
    Posted 6 years ago #

    Because of the dynamic structure of WordPress, you can't use relative links in your theme php files or in pages or posts.

  5. aptdesignonline
    Posted 6 years ago #

    Ah, I see. Well, glad I wasn't doing anything wrong. Thanks Iridiax!

Topic Closed

This topic has been closed to new replies.

About this Topic