Afternoon
I’d love a little help figuring out this problem with background images not loading please.
Currently building a client site with BB Pro, BB Theme and BB Themer (WooCommerce too). The site itself is set up in MAMP currently until I get closer to live site time. To gather feedback from my client, I expose the site via Ngrok (also handy for directly testing on devices).
The problem: On mobile via Ngrok, it seems everything but background images are loading. Then tried loading it on desktop via Ngrok (rather than directly via localhost:), and on desktop several assets aren’t loading (background images, and it looks like general layout styles aren’t loading either (some styles, such as buttons etc. are loading).
When loading on desktop via Ngrok, I can see two scripts aren’t loading (looks like because their urls haven’t been altered to relative for some reason). Here’s a screenshot of the two scripts that aren’t loading:
Things I’ve tried:
I have a Relative URLS plugin installed to get round the usual issue of assets not loading.
I’ve used the cache clearing in BB settings, as well as manually emptying the BB cache folder in Uploads.
Checked in Media that the url for those background images is now indeed relative.
Cleared the browser caches on both laptop and mobile.
Closed and restarted the ngrok connection (just in case).
Edited a page with BB and saved (wondering whether it’d prompt something to be regenerated?).
Hit the save button in Permalinks (because why not try it )
When building sites and exposing via Ngrok before, installing a Relative URL plugin has been enough to get things working correctly. My next thought was using Better Search Replace and just entering the ngrok URL everywhere so I can gather feedback from the client, but I’d prefer not to have to do that every time if it can be helped.
Because those two scripts I mentioned aren’t loading, I imagine it must have something to do with that. I’m just all out of ideas… I’m sure one of you bright people will know of something simple I may have overlooked!