July 12, 2011 at 11:44 pm #13912
You could give your body tag a different class on each page and do
but if you want it to be random on each refresh, I think you’re outta luck!
Flawless PHP = easy, you’d have to be pretty dumb to write an insecure random css script.
Off the top of my head, I’d do something like:
(Sorry if this doesn’t display properly, not sure how the forum deals with codeJuly 13, 2011 at 3:46 am #14712
small syntax error due to being in a hurry to go out and buy an icecream . Need a final closing bracket } before the ?> Sorry!July 13, 2011 at 3:52 am #14713
http://codex.wordpress.org/Function_Reference/body_class – shows you how you can add a class to the body tag with PHP. – this is not random, and is set for a given page.July 13, 2011 at 5:51 am #14714
Thank you Vera and Rose very much! The wordpress ones may come in handy later but this is for my fanlisting collective (no cms system used) so for now I will use the code Rose came up with. thanks once again!July 13, 2011 at 2:42 pm #14715
I seem to have run into an issue, I was wondering what I did wrong.. I’ve been trying to fix it for a hour now. I inserted the following code in the style area of my header.php file and when i go to view my webpage nothing loads.
") fixed no-repeat left top #000;
font: 90% tahoma;
}July 13, 2011 at 3:18 pm #14716
You must be logged in to reply to this topic.