5

The following code lets me set a default background image. Is it possible to set multiple custom backgrounds?

add_theme_support( 'custom-background', array(
    'default-image' => get_stylesheet_directory_uri() . '/images/image1.png',   
) );
2
  • Do you mean an option to select from multiple images or do you want to use multiple images together as background?
    – fuxia
    Sep 7 '12 at 7:12
  • @toscho I meant i can define some of the available background images, and the user can select one.
    – jay
    Sep 7 '12 at 9:48
2

There is no direct way of doing that as far as I can see. But I got hold of this plugin which allows you to create Image Sets and set random background images -> Background Manager

1
  • This plugin has been closed and is no longer available for download.
    – RafaSashi
    Nov 14 '19 at 11:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.