Post-background does not change!?!!?!
I’m doing a random background by session function i my wp theme. I finally got it to work, when I noticed that the background i white when I click on a post!
Does anyone know what this can be?
I have this in my HEADER.PHP:
and In my BACKGROUND.PHP:
$_SESSION[‘background’] = ‘wp-content/themes/tutorial2/background/background’ . mt_rand(1, 5). ‘.jpg’;
- The topic ‘Post-background does not change!?!!?!’ is closed to new replies.