• 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

Different Header Image For Different Language

The code in this tutorial, enables you to display a different header image when a specific language is selected using the qTranslate X plugin. The header images can be added in your child themes images folder or added via the WordPress customizer.

There’s 3 different solutions to choose from:

1. The 1st solution pulls the images directly from your child themes images folder.

2. The 2nd solution enables you to add a different image via the customizer and displays the default header image added via the default setting in the customizer for english language users.

header-image

3. The 3rd solution adds the images using the WordPress customizer and sets defaults which are pulled from your child themes images folder if none added via the customizer.

customizer

The code is tested on the Genesis Sample child theme by StudioPress however it will work in any theme as it uses WordPress hooks & functions.

Video Demo

Here’s the code for logged in members:

Register for full access

Header Image 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