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 thread is resolved. Here is a description of the problem and solution.

Problem: I need to add a custom language switcher at the header of the site

Solution: Please visit this two links where you will find the steps to follow in order to setup the language switcher and how to create a custom language switcher: - https://wpml.org/documentation/getting-started-guide/language-setup/language-switcher-options/ - https://wpml.org/documentation/getting-started-guide/language-setup/custom-language-switcher/

Relevant Documentation:

This topic contains 8 replies, has 2 voices.

Last updated by Carlos Rojas 1 month ago.

Assigned support staff: Carlos Rojas.

Author Posts
September 12, 2019 at 9:08 am #4559643

garyA-7

Hi, I'm working on a website that needs to feature two flags at the top (Angola and Namibia near the home link) - see image. These were supposed to be inactive images, but they link to a "page not found". My client wants these flags to be the language switchers (Angola = Portuguese, Namibia = English) and I didn't realise I could create custom switchers. I'm using a WP theme that didn't enable these flags to be at the top, I had to commission a developer to put them there. You can see from the attached image where the code is for these flags. I'm not sure what to do or if it's possible, I don't have expert knowledge of coding/CSS, so please be gentle 😉 Thank you.

September 12, 2019 at 2:57 pm #4562129

Carlos Rojas
Supporter

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

Timezone: America/Montevideo (GMT-03:00)

Hello,
Thank you for contacting WPML support.

1.- Please visit this two links where you will find the steps to follow in order to setup the language switcher and how to create a custom language switcher:
- https://wpml.org/documentation/getting-started-guide/language-setup/language-switcher-options/
- https://wpml.org/documentation/getting-started-guide/language-setup/custom-language-switcher/

Let me know if you need further assistance.

2.- Please increase the PHP 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', '128M');
define( 'WP_MAX_MEMORY_LIMIT', '128M' );

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

Kind regards,
Carlos

September 13, 2019 at 7:24 am #4565999

garyA-7

Hi Carlos, I'll leave it. You've given me links with instructions that are way above my level of expertise. Thanks anyway.

September 13, 2019 at 12:58 pm #4568725

Carlos Rojas
Supporter

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

Timezone: America/Montevideo (GMT-03:00)

Hi,

If you contact with the developer that added the flags in the first place he should be able to finish this. On the other hand I could help you to do it too.

Looking forward to your message.
Regards,
Carlos

September 13, 2019 at 1:16 pm #4568805

garyA-7

I'm actually having a nightmare of a time with the developer who put the flag icons there. English isn't his first language, so communication can be a struggle. He asked if I can write shorter email/messages. How is that possible when you have to convey instructions or questions or issues?? He's also unreliable and even told me he couldn't work during the day because of work commitments, but also hates working evenings and weekends. I don't know why he agreed to help me with this website. I have asked him about this topic of customising the flags, but he seems reluctant and gives me part of instructions before disappearing for days/weeks. I've had enough to be honest. I would welcome your assistance and I would be extremely grateful. I actually have one more query about the header section, which isn't coming up properly on smaller devices. We can talk here or privately. Thanks.

September 13, 2019 at 2:44 pm #4569553

Carlos Rojas
Supporter

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

Timezone: America/Montevideo (GMT-03:00)

Hi,
I understand your frustration.

I will do my best to help you solve this issue. I have set your next answer private and I kindly ask you to provide the credentials to log in the site in order to take a closer look at the issue.

Looking forward to your message.
Regards,
Carlos

September 13, 2019 at 3:51 pm #4569909

Carlos Rojas
Supporter

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

Timezone: America/Montevideo (GMT-03:00)

Hi there,
Thank you very much for the information provided.

I added the custom language switcher to the header of the site. I kindly ask you to contact the developer or our certified partners in this link: https://wpml.org/contractors/ and ask them to help you style it as you desire, as this is not my best skill.

Thank you very much for your understanding.
Best regards,
Carlos

September 13, 2019 at 4:32 pm #4570103

garyA-7

My issue is resolved now. Thank you!

September 16, 2019 at 9:51 am #4578283

Carlos Rojas
Supporter

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

Timezone: America/Montevideo (GMT-03:00)

Hi there,

Please don't hesitate to contact us if you need our help in the future with WPML. We will be more than happy to help.
Best regards,
Carlos