Skip Navigation

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

Problem:
The client wants to prevent translation links from appearing on widgets while allowing them above and below posts.
Solution:
First, we recommend navigating to WPML->Languages->Links to translation of posts and disabling the "Show links above or below posts, offering them in other languages" option if you want to hide the links globally.
However, if you wish to hide the links only from the widgets, you should add custom CSS. Go to WPML->Languages->Language Switcher options->Additional CSS and insert the following code:

.widget .wpml-ls-statics-post_translations.wpml-ls {<br />    display: none;<br />}

If this solution doesn't seem relevant to your issue, 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.

Tagged: 

This topic contains 6 replies, has 2 voices.

Last updated by Shekhar Bhandari 1 year, 1 month ago.

Assisted by: Shekhar Bhandari.

Author Posts
December 28, 2023 at 11:12 pm #15135828

jeffreyG-8

I notice that translation links appear on widgets.

As these widgets are translated and appear when the translated language is selected, how do I ensure that these links do not appear on widgets?

hidden link

image_2023-12-29_070848255.png
December 29, 2023 at 4:54 am #15135928

Shekhar Bhandari
Supporter

Languages: English (English )

Timezone: Asia/Kathmandu (GMT+05:45)

Hello Jeffrey,

Welcome to WPML support, I'd be happy to help you with this.

Go to WPML->Languages->Links to translation of posts and disable the "Show links above or below posts, offering them in other languages" option to hide the links.

Let me know if this helps.

Thanks

December 29, 2023 at 5:05 am #15135946

jeffreyG-8

Hi Shekhar

Thanks for this, but I do want it to appear above and below my posts, but not on widgets.

Regards
Jeffrey

December 29, 2023 at 5:21 am #15135951

Shekhar Bhandari
Supporter

Languages: English (English )

Timezone: Asia/Kathmandu (GMT+05:45)

Hello there,

You can use custom CSS to hide it from the widget.

Go to WPML->Languages->Languages Switcher options->additional CSS and add the following css

.widget .wpml-ls-statics-post_translations.wpml-ls {
    display: none;
}

Let me know if this helps.

Thanks

December 29, 2023 at 10:48 pm #15137667

jeffreyG-8

Hi Shekhar

Yes, it removed it from the widgets, but it also removed it from above and below the posts.

Regards
Jeffrey

January 1, 2024 at 5:09 am #15139130

Shekhar Bhandari
Supporter

Languages: English (English )

Timezone: Asia/Kathmandu (GMT+05:45)

Hello there,

To debug this issue further, I would need to check your site settings once, for this I would need temporary access (wp-admin and ftp) to your site.

So could you please provide me with those details, you will find the needed fields for this below the comment area when you log in to leave your next reply.
hidden link

This info is private and available to you and WPML supporters only.
Read more about this: https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/

Note:
Backup your sites before providing the credentials or if possible provide credentials for the test site

Look forward to your reply.

Thanks

January 1, 2024 at 6:20 am #15139151

Shekhar Bhandari
Supporter

Languages: English (English )

Timezone: Asia/Kathmandu (GMT+05:45)

Hello there,

The position to show the switcher was unchecked on WPML->Languages->Links to translation of posts creating the issue, now the issue is fixed with the use of the provided CSS.

Please confirm.

Thanks

January 1, 2024 at 8:06 am #15139182

jeffreyG-8

My apologies, I had turned it on, but for some reason it turned off.

Many thanks for your help.

Regards
Jeffrey