So, I’ve set off on a mission to build a master theme for use in our client sites. One of the hurdles I need to overcome is making header and footer layouts selectable when setting up a new site – globally.
For example, in my Options panel, I’d like to be able to ‘Choose site header layout’ and then pick from a dropdown list with options such as ‘Slim Full-Width Logo Left, Stacked w/Centered Logo, etc). I’m scratching my head wondering how to go about this as well as how to modify the normal call to make it work so that if no selection is made, it will run the normal (default) get_header() call BUT, if a selection is made from the dropdown, it will run the equivalent of say get_header(‘slim’) or get_header(‘stacked’) or, put another way, call the header-slim.php or header-stacked.php files.
So far, all I’ve got is a new field group consisting of the dropdown containing header names. I’ve set it to not be required, and null is ok so that if nothing is selected it would still run the normal get_header call.
Anyhoo, back to scratching my head… HELP! Pretty please? ?