This thread is resolved. Here is a description of the problem and solution.
Problem:
The client wants to display "This post is also available in" only on single blog posts and not on the entire website.
Solution:
We recommend adding custom CSS to hide the language switcher on pages other than single blog posts. Here are the steps to follow:
1. Navigate to Appearance > Customizer > Additional CSS area in your WordPress dashboard.
2. Add the following CSS code:
.page-id-317 .wpml-ls-statics-post_translations {<br />display: none !important;<br />}
3. Save the changes.
This CSS will hide the language switcher on the main blog page but will still display it on single post pages.
If this solution doesn't look relevant, please open a new support ticket.
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 1 year, 6 months ago.
Assisted by: Mihai Apetrei.