Tagged: background images, development, localhost, url
Author | Posts |
---|---|
budaloco
September 22, 2019 at 1:23 pm
|
Heads up! this post was created when Microthemer was at version 5. The current version is 7. Some references to the interface may be out of date. I almost went mad over background images. This is the code: .big_header h2.heading-title span { It took me a while to figure it out, but in order to make it visible in a localhost enviroment I had to get rid of the first “/” (dash). I should point out that the first dash is added by the plugin by default. .big_header h2.heading-title span { Now it works! BUT…only in microthemer. As soon as I go to the front end…I can’t see the background again. Is it me or is this a bug? Thanks for taking the time to read this |
Sebastian
September 23, 2019 at 12:04 pm
|
Hey, It’s not really a bug, it’s a quirk of your setup. You are using a sub-folder for WordPress, but the root for relative paths is still set to the root folder, rather than your sub-folder. You can solve this be entering absolute URLs instead e.g.
Or by setting the base URL in the head of WordPress. Then you won’t need to manually edit MT’s URLs. The reason MT uses root relative URLs by default when you insert an image from your WP media library is that it has various benefits:
I hope that helps! Please let me know if you’re still stuck. Cheers, |