Skip Navigation

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.

This topic contains 21 replies, has 2 voices.

Last updated by Osama Mersal 6 months, 3 weeks ago.

Assisted by: Osama Mersal.

Author Posts
May 22, 2024 at 1:23 pm #15658530

VH FP

Hello,
an issue is showing after the page translation (things are not aligned as the main language).
I already check lot of things and i don't understand the issue.

Home page
vs
Home page in Portuguese.

Thank you!

May 22, 2024 at 1:25 pm #15658532

VH FP

Please ask for access

May 22, 2024 at 1:33 pm #15658603

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

Thanks for contacting WPML forums support. I'll be glad to help you today.

1) I would need to look closely at your site, so I would need to request temporary access (WP-Admin and FTP)
Preferably to a test site where the problem has been replicated.

Your answer will be private, meaning only you and I can access it.

❌ Please backup your database and website ❌

✙ I need your permission to deactivate and reactivate the plugins and themes and change site configurations. This is also why the backup is critical.

✙ I also need your permission to take a local copy of your site to debug the issue without affecting your live site.

2) It's not related to the issue, but according to your Debug.info, the WP memory limit needs to be increased. PHP memory is fine, but WordPress uses 40Mb as default. The minimum requirements for WPML are 128 MB. (Kindly check this page https://wpml.org/home/minimum-requirements/)

You can increase it by adding the following code in your wp-config.php file right before the /* That's all, stop editing! Happy publishing. */ line:

/* Memory Limit */
define('WP_MEMORY_LIMIT', '256M');
define( 'WP_MAX_MEMORY_LIMIT', '256M');

Best regards,
Osama

May 22, 2024 at 2:06 pm #15658792

VH FP

Hello,
thank you for your advising, i've did.

That issue was solved (by default the sidebar was showing).

The language switcher (flag) isn't appearing on menu. I put everytime on "Menu language switcher", i save and never show on frontend and after that disappears from the backoffice too.

May 22, 2024 at 2:07 pm #15658794

VH FP

I can't find the place to send you the credential on private

May 22, 2024 at 2:08 pm #15658824

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

I've enabled the private reply.

Best regards,
Osama

May 22, 2024 at 2:22 pm #15658846

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

Thanks for the access details. I added the switcher, and it appeared correctly. (Kindly check the attached screenshot)

Kindly check the page and let me know if it works correctly. (hidden link)

Best regards,
Osama

2024-05-22_17-18-45.jpg
May 22, 2024 at 2:46 pm #15658974

VH FP

I've changed to "dropbox" and disappears. Why is happening this?

Also i don't like the flags there. I've tried with "Custom language switchers" but unfortunately don't appear only the flag switcher (without the name of the language)

I would like on the right side (after the cart)

May 22, 2024 at 3:15 pm #15659050

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

I added the switcher in the header using the header builder. (hidden link)

Best regards,
Osama

2024-05-22_18-13-21.jpg
May 22, 2024 at 4:02 pm #15659216

VH FP

Isn't possible only the flag? will be better because we don't have to much space there.

Thank you!

May 22, 2024 at 4:15 pm #15659227

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

Please check it now. (hidden link)

You can edit the language switcher from WPML-> Languages-> Custom Language Switcher-> Customize.

Best regards,
Osama

2024-05-22_19-12-27.jpg
May 22, 2024 at 4:18 pm #15659249

VH FP

Hello mate,
is better,
however i don't want the blank space on the right side. The flags (and the rest of the content) should be aligned on the right side.

May 22, 2024 at 4:20 pm #15659251

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

This is your header CSS, so please check your header custom CSS and edit it. (Kindly check the attached screenshot)

Best regards,
Osama

2024-05-22_19-19-45.jpg
May 22, 2024 at 4:26 pm #15659270

VH FP

Hi my friend,
without the flag everything is aligned, i don't know why with the flags i have that space.
This issue only happens with the flag, so the issue should be with the flag.

Thank you!

May 22, 2024 at 4:40 pm #15659305

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

Thanks for your update. The issue occurs because of the CSS used in the header. When adding any element, you will see the issue. For example, delete the flags and add a button.

However, I was able to fix the issue by adding the following code to your custom CSS. (hidden link)

.whb-flex-equal-sides :is(.whb-col-left,.whb-col-right) {
    flex: 0 0 auto !important;
}

Please check it now. (hidden link)

Best regards,
Osama