Forums

different layout at each refresh? (4 posts)

  1. 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.

  2. alchymyth
    The Sweeper
    Posted 12 months ago #

    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.

  3. reaphux
    Member
    Posted 12 months ago #

    good point! thanks alchymyth.

  4. 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.

Reply

You must log in to post.

About this Topic

Tags