0

In theme Twenty Eleven, do the default images rotate randomly, or with some sequence?

As far as I can see, I think it's random, but there might be some pattern/sequence that I didn't notice.

1

the header image is picked at random;

see this line in /wp-includes/theme.php line 1476:

$random_image = array_rand( $headers );

out of interest: why are you asking, and what difference would it make?

  • I'm asking because I'm changing the images and wondered whether my sequence of images would be random or if they could appear in order, kind of like an animation: richardclunan.com – Richard Aug 7 '11 at 22:52
1

Random.

get_header_image() uses is_random_header_image() to check if you hadn't selected specific image and get_random_header_image() to retrieve header if true.

0

well It Rotates Randomly. But you can change it with your sequence if you want remove random function from header.php and add urs.

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.