Absolute URL for (MultiSite) link images

by Synetech   Last Updated October 20, 2019 00:08 AM - source

How I can I get WordPress to stop making link-image URLs relative?

I'm trying to add logos to the blog-roll widget, but WordPress makes the URLs of the images relative to the current blog.

For example, if the site is example.com/blogs, the images in the blog-roll widget at the main blog work correctly, but the ones at example.com/blogs/foobar are broken because instead of using something like /common/bloglogos/main.png (or even https://example.com/common/blog/logos/main.png), it uses https://example.com/blogs/foobar/common/bloglogos/main.png.

I've tried various combinations of URLs and formats, but it always makes the images' URLs relative to the current blog which is annoying because it would require uploading the images for all of the blogs to each of them instead of having them all in a central location which can be updated as necessary with just one change.

The URLs of the links themselves are fine, it's just the URLs of the images of the links that are the problem.



Related Questions




changing static link to relative link

Updated April 27, 2018 01:08 AM


Relative URLs within site

Updated April 06, 2015 23:03 PM