hi,
i want to implement themes in my project. means i have different themes in a themes folder. The admin has rights to change and apply a new theme. i want that there is a list which shows all themes. when admin apply theme 1, then the header, footer and css of the complete site is change according to theme 1 .
how can i implement this. what is the logic behind this.
how to apply themes
Moderator: General Moderators
- feyd
- Neighborhood Spidermoddy
- Posts: 31559
- Joined: Mon Mar 29, 2004 3:24 pm
- Location: Bothell, Washington, USA
then you'll need to write code that can 1) retrieve the "active" theme to accurately pull the header/footer/css files 2) allow for scripted fetching of each of those files.
Both are not difficult, typically. The first is a simple database query. The second is often a matter of using the correct path (using the results of the database query) to build the proper path to find the files in.
Both are not difficult, typically. The first is a simple database query. The second is often a matter of using the correct path (using the results of the database query) to build the proper path to find the files in.