Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community!
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.Start your free trial
Maja B.12,984 Points
<title> displays both languages
Hi, Any idea how to make the site <title> display only in one language?
- I have a WordPress site and I'm using qTranslate-X plugin for translation.
- I have two languages (English and Deutsch).
- I'm on the page titled Map (English) and Landkarte (Deutsch).
- The general site title is Maja Blejec.
The title is written like this:
<title><?php wp_title( '|', true, 'right' ); ?></title>
and displays like this in the browser's tab:
MapLandkarte - Maja Blejec
So what shroud I do to make it display like this (if I'm on English site):
Map - Maja Blejec
and like this if I'm on Deutsch site:
Landkarte - Maja Blejec
I haven't tried this myself but could you use the following combined with an