Archived topic
Error in the customizer.
12 replies · Started by Keith on March 26, 2022
Hello Leo,
A week ago I moved my website to a new server. There was a problem with the move - my customizer wouldn't open. It was fixed by reinstalling the Generate theme.
I have only just noticed a new problem, perhaps also caused by the move.
The problem is in the customizer, every #media (max-width: 768px) statement is not read.
For example, these are the two statements for the Generate back to the top button:
.generate-back-to-top, .generate-back-to-top:visited {
border-radius: 25px;
line-height: 50px;
width: 50px;
bottom: 130px;
right: 38px;
border: 1px;
border-style: solid;
}
#media (max-width: 768px) {
.generate-back-to-top, .generate-back-to-top:visited {
border-radius: 20px;
line-height: 28px;
width: 28px;
bottom: 130px;
right: 0px;
}
}
The code in Bold above is in red in the customizer.
The second statement is not read so the button is the same size on mobiles and desktops.
Here is one of my pages https://step.asn.au/
Thanks
Keith
Hi Keith,
The media query should start with @ not #.
Try change all the # to @ in your CSS.
Hi Ying,
Thank you. In preview mode that worked, when I published it still worked, but then when I closed the customizer, it no longer worked!
All the @ had changed back to #
Keith
Hum, that's weird....
Any chance you can provide admin access? Please use the private info field for this.
And please keep all plugins except GP Premium deactivated.
We can take a look at the backend :)
Hi Jing,
Sounds good
I tried once and published, it seems working now.
Can you check?
Dear Jing,
I don't understand but it is now working! I am very grateful.
Best wishes
Keith
You are welcome :)
Hello Ying,
My problem is back!
I just tried to edit the Customizer (how I found the error in the first place) and when I had saved all the @ had changed back to #
Sorry
Keith
I'm not seeing the login info for your site any more.
Can you disable all plugins except GP Premium to try it again?
The additional CSS field in the customizer is a WP core feature and theme has absolutely no control over it.
Hi Leo,
Thanks. I did disable all plugins except Generate, and that did fix the problem (temporarily?).
That's good enough for me for now.
As customizer is a core feature I will reload Wordpress 5.9.2 and see what happens.
I can always do a temporarily fix again.
Thanks for your help.
Keith
Hi Leo,
For your info, the problem was caused by the WP Photo Album Plus plugin.
Thanks for all your help
Keith
Glad to hear :)