sega — 2012-03-29T04:23:51-04:00 — #1
I've recently got into template production (now at the early stages), and I am finalizing my first theme. I want to by able to choose different styles on the page like so http://invent-themes.pl/demo/clear-theme/?page_id=46. I've tried doing a search but I found nothing which gives the complete set. I've noticed more than one template (maybe even 100s) have this kind of selector. Can anybody guide me to a proper selector.
paul_wilkins — 2012-03-29T04:37:11-04:00 — #2
What normally happens is that the querystring is read by the server-code code (typically PHP) which then gathers together what is needed.
sega — 2012-03-29T04:47:58-04:00 — #3
Do I have to create my own jQuery to do this. Maybe I can find some ready made scripts online. Would save me an enormous amount of time.
oddz — 2012-03-29T04:48:30-04:00 — #4
The only reliable way to offer a theme which offers configurable styles would be to use a server-side language in front of the style sheet so that placeholders in the style sheet can be replaced with the appropriate, configured values.
paul_wilkins — 2012-03-29T04:50:40-04:00 — #5
Oddz is right. Client-side solutions such as jQuery are just not suitable for this type of behavior.
sega — 2012-03-29T04:58:47-04:00 — #6
This will be used on a template, for the purpose of selecting different themes. It will not be put on a CMS or need to communicate in any way with a database.