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:

Join 5000+ Followers

Get The Latest Free & Premium Tutorials Delivered The Second They’re Published.