• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Change header image when I change the language

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › Design Tips and Tricks › Change header image when I change the language

This topic is: not resolved

Tagged: header, image, polylang

  • This topic has 3 replies, 2 voices, and was last updated 10 years, 2 months ago by David Chu.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • October 5, 2015 at 2:24 am #167415
    naiarafernandez
    Member

    Hello,

    I need your help.

    I'm using Polylang plugin and I would like to change header image when I change the language. So it has to be 2 different languages and 2 different headers at the same time.

    I tried to do this (https://polylang.wordpress.com/2013/05/03/a-multilingual-custom-header-image/), but didn't work:

    Step 1: create a directory ‘polylang’ in ‘wp-content’ (this is a place where you can store Polylang cutomizations which will not be overwritten when updating Polylang).

    Step 2: Copy paste the following code in a file called ‘wpml-config.xml’ that you upload in your ‘wp-content/polylang’ directory:
    <wpml-config>
    <admin-texts>
    <key name='theme_mods_lifestyle-pro'>
    <key name='header_image' />
    </key>
    </admin-texts>
    </wpml-config>

    Step 3: Set an header image in ‘Appearance -> Header’

    Step 4: Go to Settings -> Languages -> Strings translations. You can now choose one header image url per language!

    I asked to Polylang support and they told me this:

    "Your theme does not seem to use the builtin WordPress custom header, theme_mods.
    As your theme is not freely available, please contact your theme author for advice."

    Could you help me to solve the problem?

    Thank you in advance

    Naiara

    http://itsasargia.com
    October 5, 2015 at 12:11 pm #167455
    David Chu
    Participant

    Hola Naiara,
    Es un problema interesante. 😉 It sounds like your plugin requires that your theme use the Customizer for the header image.

    Previously Genesis themes used a proprietary setting for the header image. Your theme may be doing that now. I don't have that theme, but it may not be prepared to use the Customizer for the header image.

    Pero todavía tengo una idea pequeña para Vd. It's done with CSS. Hay un ejemplo aquí.

    .site-title a:lang(eu) {
        background: url(http://itsasargia.com/wp-content/uploads/2015/06/imagen-nueva.png) no-repeat !important;
    }

    Por supuesto mi ejemplo tiene un imagen imaginario. 😉 First you'll want to upload your image for Euskera somewhere on the server. Then make a note of the path to the file, and use it to replace the file path above. Then add the code to your CSS. Appearance.... Edit.

    Yo diría la respuesta completamente en castellano, pero no tengo un vocabulario técnico muy grande. 🙂 I hope my solution is understandable.

    Un saludo,
    Dave


    Dave Chu · Custom WordPress Developer – likes collaborating with Designers

    October 5, 2015 at 2:17 pm #167476
    naiarafernandez
    Member

    Hi Dave,

    It worked!

    http://itsasargia.com/eu/

    Thaaaaaaaank youuuuuuu! 🙂 🙂 🙂 🙂 🙂

    October 5, 2015 at 2:48 pm #167478
    David Chu
    Participant

    Naiara,
    ¡Que bien! Me alegro.

    Hasta la próxima vez,

    Ciao,
    Dave


    Dave Chu · Custom WordPress Developer – likes collaborating with Designers

  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘Design Tips and Tricks’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2025 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble