Support » Themes and Templates » Easiest way to switch CSS styles?

  • Hey guys, client wants his affiliates to be able to link to his homepage, and have the homepage change background color and logo depending on which affiliate’s link lead the visitor to arrive on his homepage.

    What is the easiest way to do this?

    I think something like this is needed, but I’m not sure how to implement it best:

    Can you please offer some suggestions? Thank you.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Anyone? Cheers.

    never tried it but you might think of using the cookies for this.
    write a functions for writing data to section according to affiliate link, then a function for checking the session and choosing right css.

    in fact this thing can be turned into a plugin which has a settings page and etc.

    i might suggest the session as well but as i remember an article about wordpress encourages using of cookies instead of session.(correct me if i’m wrong, i’m not sure about this 100 percent)

    Thanks for your suggestion mate.

    I found an old plugin called “setCSS” but it is outdated and the developer’s homepage is now blank.

    He used function like

    And the domains simply forwarded to the correct id.

    Unfortunately I’m not a coder and this is a little beyond me…

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Easiest way to switch CSS styles?’ is closed to new replies.