reaphux
Member
Posted 12 months ago #
Hi all. have been using wordpress for a while.
just a quick question. is there a way to display different layout (load a different css?) at each refresh?
am thinking of putting up ads and dont want it to be in the same position all the time.
thanks and appreciate any advices.
you could use the php function rand http://php.net/manual/en/function.rand.php to load a random css file; or even select a different design section.
reaphux
Member
Posted 12 months ago #
good point! thanks alchymyth.
romenov
Member
Posted 12 months ago #
Create an array of CSS files that define your structure and use the php rand function as suggested above to select a different stylesheet per visit.