CSS disappeared - but not in Admin?
Hi,
Forgive me if a similar post has been made. I searched high and low but might have used the wrong terms.
The issue
I have made a Betheme site on ip 1234566...
Our old site was placed on URL XYZ
When I was done with the new Betheme site, my colleague switched ips on the two machines, so the betheme site was now responding to URL XYZ and the old site was shown at ip 1234566...
However, after the change it is as if the css doesn't work any longer but only frontend. When I go to admin and press edit with BeBuilder the pages look exactly like I want them to.
Additionally, I cannot add pre-built sections any longer either.
I have of course cleared cache (several times)
What can I do to sort it?
Here's a few examples
Number one - homepage of https://begavetmedglaede.dk/
Frontend:
Same page but In admin -> editing with BeBuilder. There it looks like it's supposed to:
Example two - https://begavetmedglaede.dk/charter/
Frontend:
In admin -> Edit with BeBuilder:
To me it looks like CSS isn't working.
Hoping for your help. Thank you.
All the best,
Deborah
Comments
Hi,
Please see the following link:
https://support.muffingroup.com/faq/bebuilder-content-different-from-frontend-missing-styles/
There you will find out how to handle this problem.
Best regards
Thank you but I'm unsure if that's the matter.
I cannot change this setting:
Instead, I have installed a "force SSL" plugin.
If you cannot change these, it means that they are determined in your wp-config.php file.
See the following link showing how to correct that:
https://wpcompendium.org/wordpress-management/wordpress-troubleshooting/how-to-fix-cant-change-wordpress-website-address-greyed-out-urls/
Best regards
Hello again,
Thank you so very much! ? The CSS is back :-)
If someone else is looking for a solution to the CSS problem, here it comes:
When I changed to the the exact domain, I was sent to 127.0.0.1
Instead I changed from http to https in these two lines and everything looked pretty again :-)
define( 'WP_HOME', 'https://' . $_SERVER['HTTP_HOST'] . '/' );
define( 'WP_SITEURL', 'https://' . $_SERVER['HTTP_HOST'] . '/' );
Solution to the "cannot add pre-built section"-problem:
I have a valid license code, so figured the guides that said to make sure the license code was valid didn't apply to me.
But it did :-)
I used this site http://api.muffingroup.com/licenses/ to check and surely, the license code was registered to the old ip-address.
Glad to see that you manage to solve that, and thank you for sharing the solution with others.
Best regards