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.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 -

Supporter timezone: Asia/Singapore (GMT+08:00)

This topic contains 8 replies, has 2 voices.

Last updated by Kor 5 months, 1 week ago.

Assisted by: Kor.

Author Posts
September 5, 2024 at 3:20 pm #16145779

markP-34

Background of the issue:
I need to remove the language flag in the sidebar menu on my site hidden link.

Symptoms:
No specific issue or error message mentioned.

Questions:
How can I remove the language flag in the sidebar menu using WPML?

September 5, 2024 at 4:54 pm #16146078

Kor
Supporter

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for reaching us.

The language switcher is configured using the option here https://wpml.org/documentation/getting-started-guide/language-setup/language-switcher-options/#where-to-display-language-switcher .

Maybe you can try removing the "Menu Language Switcher" and see if it's what you're trying to achieve.

September 5, 2024 at 4:56 pm #16146110

markP-34

I have a default section with flag choices, but I don't want flags, how to remove this section? Thanks!

Screenshot 2024-09-05 125510.png
September 5, 2024 at 4:59 pm #16146126

Kor
Supporter

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your reply.

Are you saying you would like to remove the language switcher as highlighted in the attached screenshot here hidden link ?

Screenshot_137.png
September 5, 2024 at 5:30 pm #16146258

markP-34

yes, and we want to customize to EN | FR

September 5, 2024 at 5:31 pm #16146263

Kor
Supporter

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your reply.

You should be able to remove that language switcher using the option that I mentioned above. But since you've tried and it's still not working, please share temporary access (WP-Admin and FTP) to a test site where the problem has been replicated, if possible. This will enable me to provide better assistance and determine if any configurations need to be modified.

Please note that it is important to have a backup for security purposes and to prevent any potential data loss. You can use the UpdraftPlus plugin (https://wordpress.org/plugins/updraftplus/) to fulfill your backup requirements.

Your upcoming reply will be treated with confidentiality and will only be visible to you and me.

✙ To resolve the issue, I may need your consent to deactivate and reactivate plugins and the theme, as well as make configuration changes on the site if necessary. This emphasizes the significance of having a backup.

September 5, 2024 at 5:57 pm #16146344

Kor
Supporter

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your reply. You can remove the language switcher using the custom CSS code below.

#Side_slide .extras {
    display:none;
}

Insert into WP > Appearance > Customize > Additional CSS.

Screenshot_140.png
September 5, 2024 at 9:26 pm #16146891

markP-34

thanks for your help Kor, what if I want to change the language switcher to show
"EN | FR" ? thanks!

September 6, 2024 at 10:13 am #16148141

Kor
Supporter

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your reply.

It's possible with some custom CSS code. I've applied the code below into WP > Appearance > Customize > Additional CSS.

#Side_slide #menu ul li.wpml-ls-menu-item  a {
    display: inline!important;
   
}

.wpml-ls-menu-item{
    display:inline!important;

}

.wpml-ls-current-language {
    border-right:1px solid #fff!important;
    padding-right:15px!important;
}

.wpml-ls-item-en a:after{
    content:"EN"!important;
}

.wpml-ls-item-fr a:after{
    content:"FR"!important;
}

span.wpml-ls-display {display:none!important;}

DISCLAIMER: Please know that any snippet or code suggested here is for educational purposes only. they are not meant to be the final solution but instead meant to point you in the right direction and are out of the scope of our support so we can't nor will modify, improve, debug or maintain it.

Screenshot_1.png

The topic ‘[Closed] I need to remove language flag in the menu’ is closed to new replies.