Title: Polylang and random header image
Last modified: August 31, 2016

---

# Polylang and random header image

 *  Resolved [Arnd030](https://wordpress.org/support/users/arnd030/)
 * (@arnd030)
 * [10 years ago](https://wordpress.org/support/topic/polylang-and-random-header-image/)
 * Thanks for Polylang.
 * I stumbled upon this: With polylang, the custom header image:
 * `add_theme_support( 'custom-header' );`
 * in functions.php the header image
 * `get_header_image();`
 * only works with one language if several header images are uploaded and set to**
   random**. With the other language, get_header_image() returns an empty string.
 * With only one header image set, it works fine.
 * [https://wordpress.org/plugins/polylang/](https://wordpress.org/plugins/polylang/)

Viewing 1 replies (of 1 total)

 *  Thread Starter [Arnd030](https://wordpress.org/support/users/arnd030/)
 * (@arnd030)
 * [10 years ago](https://wordpress.org/support/topic/polylang-and-random-header-image/#post-7313765)
 * Okay, it appears I have to add translations for all media and then add header
   images for every language separately.

Viewing 1 replies (of 1 total)

The topic ‘Polylang and random header image’ is closed to new replies.

 * ![](https://ps.w.org/polylang/assets/icon-256x256.png?rev=3433336)
 * [Polylang](https://wordpress.org/plugins/polylang/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/polylang/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/polylang/)
 * [Active Topics](https://wordpress.org/support/plugin/polylang/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/polylang/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/polylang/reviews/)

 * 1 reply
 * 1 participant
 * Last reply from: [Arnd030](https://wordpress.org/support/users/arnd030/)
 * Last activity: [10 years ago](https://wordpress.org/support/topic/polylang-and-random-header-image/#post-7313765)
 * Status: resolved