Support » Plugins and Hacks » Post-background does not change!?!!?!

  • Hi!

    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:

    <?php include(“background.php”);
    ?>

    </head>

    <body background=”<?=$_SESSION[‘background’]?>”>

    and In my BACKGROUND.PHP:

    <?php
    session_start();

    if(!$_SESSION[‘background’])
    $_SESSION[‘background’] = ‘wp-content/themes/tutorial2/background/background’ . mt_rand(1, 5). ‘.jpg’;
    ?>

    Thanks!

    /Hans

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Post-background does not change!?!!?!’ is closed to new replies.