• Resolved Arnd030

    (@arnd030)


    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://www.ads-software.com/plugins/polylang/

Viewing 1 replies (of 1 total)
  • Thread Starter Arnd030

    (@arnd030)

    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.