By zarafc on
I have a mutil language site and have installed the language switcher module.
On every content page there is a label for the current language. Does anyone know how to remove this label?
Language
English
I have a mutil language site and have installed the language switcher module.
On every content page there is a label for the current language. Does anyone know how to remove this label?
Language
English
Comments
Go to Admin » Structure »
Go to Admin » Structure » Content types » (your type) » Manage Display
Then in the table, change the format of the language field to hidden.
Solved
Many thanks. It worked
works - but only partially - unless ....
works - but only partially ....
http://www.example.com/en/admin/structure/types/manage/C_TYPE/display/
It works on the page (node) in both languages - but it shows up on the front-page (using the default set-up of .../node).
- unless ....
This is the teaser and in order to turn it off here as well - you need to hide the label also under the teaser display setting ....
http://www.example.com/en/admin/structure/types/manage/C_TYPE/display/te...
Note: C_TYPE is whatever your content type is called - for example FAQ, article, basic page, etc.
and btw. there is a tab on the top of the admin page on the right to chose Teaser or "Standard" (funny - this one just shows up in German on our multi-lingual project right now ... so not sure what the exact en term is for "Standard") - This is a Drupal 7 project - but should be very similar in D6.
.....
Just reporting this still
Just reporting this still appears to be an issue in Drupal 9.2.7. If you use Layout Builder you might notice the language shows regardless of what you have added in LB or your block layout settings.
I figured out a workaround (albeit slightly painful) is to:
After that you can change back to LB, etc. and the language display will be gone.
Updating - now I'm not sure
Updating - now I'm not sure what I suggested above works. After testing a bit further it looks like the extra bottom language display happens whenever you add the language field in layout builder. When you place the field in LB, the bottom display will also show up.
Adjust / override your node twig template
Change:
{{ content|without('links') }}Into:
{{ content|without('links', 'langcode') }}