Show Different Site Description Based on Language Setting

This code works based on the language you set in Settings > General > Site Language. The language you set will output in the HTML source code which you can view in Chrome by right clicking > View Page Source which generates a HTML document like this:

html

Note: The code changes the site description ( tagline ) on the front end but not in the HTML of the page source.

In this example, it displays a different description when the site language setting is set to French like this:

site-langauge

It replaces the site description set in Settings > General > Tagline:

tagline

Here’s the code for logged in members:

Was This Tutorial Helpful?

Free

$0

Access only to all free tutorials per month.



Monthly

$75

Access to 10 premium tutorials per month.


Tutorial Request


Includes code guarantee and coding support.

Yearly

$500

Access to 15 premium tutorials per month.


Monthly Tutorial Request


Includes code guarantee and priority coding support.