• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

WP SITES

2665

Original Genesis Tutorials & 5000+ Guaranteed Code

Snippets

  • Support
  • Newsletter
  • Videos
  • Log in

Premium Member? - Request custom code

Show Different Site Title 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 title on the front end but not in the HTML of the page source.

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

site-langauge

It replaces the title set in Settings > General > Site Title:

site-title

Here’s the code for logged in members:

Register for full access

Translate Language

Reader Interactions

Leave a Reply Cancel reply

You must be logged in to post a comment.

Primary Sidebar

PHP Code

template_include

get_body_class

if else

array

class_exists

foreach

sprintf

add_action

printf

variable

Advertise · WPEngine · Genesis · Log in

  • How Premium Membership Works
  • Sign Up
  • Support
  • Subscription Details/Invoice
  • Tagged Tutorials
  • Access-Download Problems