Page Background won't display in Posts page only
-
Every other page is fine but when you go to a post’s page the background.
jholway.com is the site.Here is a blog post (with no background)
I am using a bit of PHP that has the background images change when you refresh the page but I can’t understand why it works everywhere but there.
Here’s the php:
<?php
$bg = array(‘bg-01.jpg’, ‘bg-02.jpg’, ‘bg-03.jpg’, ‘bg-04.jpg’, ‘bg-05.jpg’ ); // array of filenames$i = rand(0, count($bg)-1); // generate random number size of the array
$selectedBg = “$bg[$i]”; // set variable equal to which random filename was chosen
?>
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Page Background won't display in Posts page only’ is closed to new replies.