subdirectory and backgound images

Author Posts

johannesodeg

I have a wp site in a sub-directory like this: https://www.allnor.no/testsite

When I use Microthemer to ad a background image it does not work. It adds a path like this: /wp-content/uploads/2022/03/ribbon1a.png

When I manually change the path to: https://www.allnor.no/testsite/wp-content/uploads/2022/03/ribbon1a.png it works ok. It took me a long time to figure it out. Can this be fixed?

regards
johannes


Sebastian

Hey Johannes,

Yes there is an option in Microthemer’s Preferences to use absolute URLs for background images. Relative paths are more convenient when switching between development and production sites, but they don’t always work with certain sub-directory setups (not all).

To fix, set the following preference to “Yes”:

Use absolute background image URL paths

Cheers,
Sebastian

P.S. I’m sorry to hear that you lost time to this issue.

You must login or register to reply to this topic.