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.
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.
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.
Here’s the code for logged in members:
You need to pay to fully access this tutorial.
Enjoy unlimited access & coding support by registering.