Skip Navigation

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

Problem:
You are trying to hide the available language translations for pages but not for posts on your website. The current CSS solution only works for individual pages, not globally.
Solution:
We recommend applying the following global CSS to hide the language translations on all pages but keep them visible on posts:

body.page .wpml-ls-statics-post_translations {<br />    display: none !important;<br />}

After applying this CSS, please clear all sorts of site/server/CDN cache to see if this resolves the issue.

If this solution does not apply to your case, or if it becomes outdated, 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 you still need assistance, please open a new support ticket at WPML support forum.

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 1 reply, has 0 voices.

Last updated by michalH-20 2 weeks, 3 days ago.

Assisted by: Noman.

Author Posts
April 10, 2025 at 8:46 am #16917286

michalH-20

Background of the issue:
I am trying to hide the available language translations for pages but not for posts. The feature that shows available translations after the content of the post is great and necessary for us, but it also appears on pages, which we don't want. I found a CSS solution that works for a single page but not globally. I want a global solution. Link to a page where the issue can be seen: hidden link. CSS used: .page-id-317 .wpml-ls-statics-post_translations {</>display: none !important;</>}

Symptoms:
The feature that shows available translations appears on pages, and I want it to only appear on posts. The current CSS solution only works for individual pages, not globally.

Questions:
How can I hide the available language translations globally for pages but still show them for posts?

April 10, 2025 at 1:09 pm #16918779

Noman
WPML Supporter since 06/2016

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hi,

Thank you for contacting WPML Support. To apply the CSS globally for all pages, could you please try to use the below CSS:

body.page .wpml-ls-statics-post_translations {
    display: none !important;
}

After that please clear all sorts of site/server/CDN cache and see if this resolves the issue.

Thank you

April 10, 2025 at 1:14 pm #16918805

michalH-20

Wonderful! Thank you very much, it works fantastic! I am starting to love the WPML! 🙂 Few more details and it will be almost perfect 🙂