Skip Navigation

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

Problem:
The client wanted to fix the position of the language switcher in the menu to ensure it stays at a fixed distance from the Instagram icon on every translated page. Additionally, the client's blog page was not appearing on the translated pages.

Solution:
1. To fix the position of the language switcher, we suggested custom coding, which is beyond our support scope. This could involve setting a minimum width for the menu. Alternatively, we recommended placing the language switcher next to the Instagram icon using PHP and shortcodes, following the steps in our guide: Adding language switchers using PHP and shortcodes.

2. To address the blog page not appearing in translated versions, we advised ensuring that the Blog page and its posts are translated and published in the secondary languages.

3. We also recommended increasing the WordPress memory limit to at least 128MB, as per our minimum requirements: WPML minimum requirements. The client can add the following code to the

wp-config.php

file:

/* Memory Limit */<br />define('WP_MEMORY_LIMIT', '256M');

- This code should be placed above the line /* That's all, stop editing! Happy blogging. */
The WordPress memory limit can be verified in WPML -> Support.

If the provided solution does not apply or is outdated, or if you encounter further issues, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If the issue persists, please open a new support ticket with us.

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 3 replies, has 2 voices.

Last updated by Carlos Rojas 10 months, 2 weeks ago.

Assisted by: Carlos Rojas.

Author Posts
March 22, 2024 at 9:39 am #15439629

lynetteO-2

Hello,

I have added the language switcher to my menu. I would like to have the language switcher at a fixed position, because now it moves per translated page, depending on how many characters /the word length in the menu. Is there CSS code to fix the language switcher on every translated page?

Another problem that I am having is that my blog page is not present on the translated pages. How to solve this?

My website is hetkasteelke.com

Many thanks in advance.
L.

March 22, 2024 at 9:54 am #15439657

Carlos Rojas
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/Madrid (GMT+01:00)

Hello,
Thank you for contacting us

1.- I have visited hetkasteelke.com but I can't reproduce the issue of the language switcher because it seems only one language is active. Could you share some screenshots or a link to a video describing the issue so I can have a better understanding?

2.- Could you share the URL of the blog page in the original language?

3.- Please provide the debug information of the site in the section that appears below this ticket.

In this link, you will find the steps to follow: https://wpml.org/faq/provide-debug-information-faster-support/

Please don't paste the debug information within the ticket

Regards,
Carlos

March 22, 2024 at 11:36 am #15440101

lynetteO-2

Hello!,

1. Maybe because I had "under construction" on? I have turned it off. I have provided some screenshots. I would like to have the language switcher at a fixed distance from the Instagram icon, so I was wondering if there is CSS to do this?

2. This is the URL of the blog page (original language, Dutch): hidden link
But when I change to a different language such as German or English the whole blog is gone. I have also attached screenshots of this.

3. I have copied and pasted the debug information in the "debug info" box.

Many thanks in advance.

Kind regards,
L.

Blog page_German.jpg
Blog page.jpg
Screenshot_Homepage_German.jpg
Screenshot_Homepage_originallanguageDutch.jpg
March 22, 2024 at 11:47 am #15440339

Carlos Rojas
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/Madrid (GMT+01:00)

Thank you for your message.

1.- To achieve this via CSS you will need custom coding -which falls outside of the scope of our support service- probably establishing a minimum width for the menu that applies regardless of the number of items or the length of them.

There is another solution, and it is to add the language switcher next to the Instagram icon instead of placing it within the menu. To achieve this you need to follow the steps described in this guide: https://wpml.org/documentation/getting-started-guide/language-setup/language-switcher-options/adding-language-switchers-using-php-and-shortcodes/

2.- Make sure the Blog page is translated, the translations are published and the blog posts are translated to the secondary languages.

3.- Please increase the WP memory Limit. Minimum requirements are 128Mb: https://wpml.org/home/minimum-requirements/
You can add this to wp-config.php to increase WP memory:`

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

- Add it above the line /* That's all, stop editing! Happy blogging. */

You can double-check the WordPress memory limit in WPML -> Support