Tell us what you are trying to do?
I would like my Woocomerce product pages and checkout page to look similar for both my languages. As it is now I do not have the same setting fot the top area with the header. See attached pictures.
Is there a similar example that we can see?
See attached pictures
What is the link to your site? hidden link hidden link
Hello There,
Thanks for contacting WPML Support. I will be glad to assist you in this matter.
After reviewing the Product page, I noticed that custom CSS has been applied to the page header in the default language. However, these CSS codes were not copied to the translated product page, which is why the page header on the translated product page does not appear the same as the default product page.
Here is the CSS code that is not working on the translated product page: hidden link
Now, this issue can be solved in two ways. Either setting up the translation preference for the custom CSS field to copy or adding language-specific CSS code. As I'm not aware of how you've added the CSS, I'm including the other approach below.
To solve the issue, please duplicate the existing CSS code and include the Language attribute selector within the parent class of the CSS. Here's an example to demonstrate the approach:
The same thing is happening on the checkout page. The background image is added in custom CSS[Screenshot: hidden link; which is not getting copied to the Translated page. However, by following the same steps mentioned above, you should be able to fix the issue on Translated checkout page too.
It is worth noting that by including the Language attribute selector within the parent class of the CSS, you can effectively differentiate and apply specific styles based on the language. I hope it will help.
Please note that support for custom code is beyond the scope of our support. The CSS code provided above is for demonstration purposes, intended to guide you in resolving the issue.
By implementing the approach outlined above, you should be able to address the issue. However, if you encounter any difficulties or require further assistance, please feel free to let me know. I will be happy to help.
Best regards,
Prosenjit
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.