How to make multiple themes for a website? [closed]

-2

How does multiple themes work on a website?

I have

themeRED.css e themeBlue.css

Do I have to write to the bank the css location? or is there an easier way?

    
asked by anonymous 11.04.2014 / 22:06

2 answers

1

You do not necessarily need to save on a bank account.

You can use javascript to check which theme is used and load it.

Here is an answer on how to load CSS by Javascript:

link

    
11.04.2014 / 22:29
1

Save the theme name in the database and at the time of uploading the CSS file use the user's theme string to load the css (s) with that theme.

Ex: "theme1"

HTML:

<link rel="stylesheet" src="temas/tema1/geral.css" />  

Just like JQuery UI does with its different themes ... without mystery. :)

    
11.04.2014 / 22:59