happy
happy copied to clipboard
Create theme settings
Need to create theme settings for a few features:
- enable archives or excerpts
- enable menu toggles (choose which menus receive toggle)
- enable home feature area
- some other, more typical stuff
Do you plan on using an options framework or building from scratch?
@bryceadams thanks for checking in, Bryce : ) I'm probably going to roll my own based in large part on Tom McFarlin's boilerplate https://github.com/tommcfarlin/WordPress-Settings-Sandbox Though it will be much simpler. I'd like for most of the theme settings to be configurable through the customizer.
@krogsgard The code structure in Tom's sandbox example looks nice and clean. A bit of repetition, but it's an example boilerplate so... :)
One thing I did notice is that all options are stored in individual rows in the options
table. While this is done, it's not ideal (all should be in a single row, rather, in a serialised array).
You could create a function/method to get, format and cache the settings as well, which would save both on database storage and be useful and scalable in terms of the PHP involved. :)
Hi,
I just wanted to weigh in and say that the less theme options the better. I think since it is a base theme, too many would be overkill. You want people to focus on the responsiveness, not the options after all :-)