And on the translated page the margin-bottom is set to 0 and I don't understand why and how (page is translated using WPML, so the design should be 100% identical to the original version):
I understand the issue you're having. If the style adjustment is made in the Divi Editor, the same style should be copied over to the translation. However, if you've added the style by defining custom CSS, the CSS rule may not be copied over to the translation.
In such cases, you need to add the language selector property at the beginning of the CSS. Within the selector, include the language code for which the CSS will apply. Please check the example CSS below:
//"en-US" is the language code for English. If you inspect the English page, you'll see that in the lang attribute of HTML tag
html[lang="en-US"] .et_pb_gutters1 .et_pb_column_3_4 .et_pb_module, .et_pb_gutters1.et_pb_row .et_pb_column_3_4 .et_pb_module {
margin-bottom: 3.735%;
}
But if the style adjustments are made within the Divi editor, you may need to make a small change in the default page or post and then update the translation so that any changes can copied over to the translation correctly.
Please let me know the update. I will be happy to help if you need further assistance in this matter.
Best regards,
Prosenjit
The topic ‘[Closed] Divi: CSS settings different on translated page’ is closed to new replies.
Manage Cookie Consent
We use cookies to optimize our website and services. Your consent allows us to process data such as browsing behavior. Not consenting may affect some features.
Functional
Always active
Required for our website to operate and communicate correctly.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
We use these to analyze the statistics of our site. Collected information is completely anonymous.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
These cookies track your browsing to provide ads relevant to you.