CSS problems when changing the website domain
-
Hello,
yesterday I changed my website domain through my hosting provider, but after this some problems occurred: the form margin doesn’t exist now and it doesn’t look pretty.
My Forminator form doesn’t have any custom style, i used the Default style, but i added a lot of custom CSS through the wordpress costumization (and it all works, i checked in my preload version).
The hosting support said me to contact you, explaining this:
Our preload technology is based on automatically replacing the website’s URL, switching from the original domain to the corresponding .preload.site domain. It is therefore plausible that the Forminator plugin, failing to recognise the original domain, does not apply its own customisation of the stylesheet and simply uses the plugin’s default CSS.
On the live site, however, Forminator operates normally, generating a custom stylesheet and loading it in place of the default one. It is precisely in this custom file that the different visual behaviour of the form is observed and, specifically, the absence of side margins.
The cause can be attributed to the plugin’s different handling of stylesheets in the two contexts.
We therefore suggest that you check, either in Forminator’s settings or with the help of the plugin developer, whether it is possible to force the use of the default stylesheet in the production environment as well; alternatively, you could manually edit the custom stylesheet generated by the plugin, adjusting the form’s margins to achieve the desired result.
You must be logged in to reply to this topic.