I have a theme in which there are numerous options, like:-
- Setting Theme Type among many available
- Setting Body Background Color & Image
- Setting Header & Footer Images
- Setting General Font Face, Size & Color
- Setting Text Area Background Color, and Font Face & Font Color
- Setting Form Area Background Color & Rounder Corners option
- Setting Form Element Background Color, and Font Face & Font Color
- Setting Link Default Color, Hover Color & Visited Color, with / without decoration
- Providing options to upload any number of Images to be used in the user’s blog
- and many more…
Can anybody please provide any info as to how this can be done in a best possible way, using custom PHP & jQuery?
I’m also open to other ways around.
EDIT:-
I have got some 12 themes all worked out, along with their own style sheets defined & icon packs. I have also got them to load upon each of the customer’s personal taste. What I don’t know is that how to manage the changes made to the customer’s theme choice by that customer from his own account? This has to take effect both the times :-
- when the customer is making / loading the changes from his account
- when the customer is viewing his account along with the changes
BTW, many many thanks for such a quick response, by two users & letting me know about my incomplete question.
Any help is greatly appreciated.
Try something like this:
And the
theme_layout.phpfile in'path/to/theme/folder/theme_layout.php'should look like this:Update
You are right that was only the concept, here’s what you have to do: Add new table in database
user_themesfor example and save all user related values there. For example user enters the admin page and sees a theme options like BG Color/Image, Font Name/Size/Color and enters his own values there… Form is submitted and values are saved in the database. Then during the theme display (where I assigned values to the template files) you get user entered theme options from database and assign as a theme values.I really don’t understand where jQuery should be used here, maybe in the form where user submits his options.
Hope this is helpful.