Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
The client is trying to translate their store page to Dutch and expects to see the same version as in English. However, they are encountering an issue where the translated page has a different view with incorrect margins, making the site look unprofessional.
Solution:
If you're experiencing a similar issue with incorrect margins on your translated store page, we recommend checking if there is custom CSS set within your site or theme options that controls the margins and width of your shop page. In the client's case, the English version had specific CSS that set the max-width to 1240px for screens wider than 922px:

@media (min-width: 922px)<br />.ast-woo-shop-archive .site-content > .ast-container {<br />    max-width: 1240px;<br />}

Applying this CSS to the translated page should resolve the issue. If the translated page is currently set to 100% max-width, it needs to be adjusted to match the original language's styling.

If this solution doesn't seem relevant to your situation, please open a new support ticket with us, and we'll be happy to assist you further.

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

Tagged: 

This topic contains 3 replies, has 2 voices.

Last updated by Bobby 1 year, 3 months ago.

Assisted by: Bobby.

Author Posts
January 3, 2024 at 8:17 pm #15148680

sammeS

I am trying to: translate my store page

Link to a page where the issue can be seen: hidden link

I expected to see: the same version as in English, but translated to Dutch

Instead, I got: a different view with wrong margins

Previously my store issue seemed to be fixed however, the bug reoccured after a while, leaving my site looking very unprofessional.

I would like to look for a more rigid solution going forward. I've already tried recreating the page and this did not solve the issue.

For full information, please also see my previous support ticket.

Thanks!

January 4, 2024 at 1:21 am #15149014

Bobby
Supporter

Languages: English (English )

Timezone: America/Los_Angeles (GMT-07:00)

Hi there,

is there anywhere within your site or theme options that you set custom CSS to control the margins and width of your shop page?

I noticed that the default language has the following CSS:


@media (min-width: 922px)
.ast-woo-shop-archive .site-content > .ast-container {
max-width: 1240px;
}

which when applied to the translation it shows the page as expected. At the moment the translation instead of 1240px is set to 100% max-width.

Screen Shot 2024-01-03 at 5.19.44 PM.png
January 4, 2024 at 10:15 am #15149911

sammeS

Hi Bobby,

Thanks for the hint - I've been able to update the container setting and it seems to be fixed now!

Thanks again

January 4, 2024 at 10:03 pm #15153074

Bobby
Supporter

Languages: English (English )

Timezone: America/Los_Angeles (GMT-07:00)

Glad to hear it's fixed now and it was my pleasure!

Have a great day.