I added a few custom options to a child theme based on smpl-skeleton as outlined in the tutorial on http://themes.simplethemes.com/skeleton/tutorials/how-to-add-theme-options/ but they’re not showing up in the customize screen. Is this tutorial applicable to the skeleton theme that’s in the wordpress.org repo?
If it isn’t can someone direct me to relevant documentation that works for this theme?
I’m using wp 3.9.1 and smpl-skeleton 2.1.0, if that’s any help in clarifying what I’m experiencing.
My apologies. I probably need to remove that link. That tutorial is referncing the previous version/branch of Skeleton found here:
Over the course of submitting and getting Skeleton approved to the wp.org repository, the native WP theme customizer was the recommended way to go.
That said, the customizer.php is currently called in functions.php here:
require_once get_template_directory() . '/customizer.php';
The problem here is this file is called up from the parent theme directory. So anything you modify in customizer.php would be lost on the next update.
What you can do temporarily is go ahead and replace the above line (in the parent theme) to:
load_template( locate_template( 'customizer.php' ) );
which I’ll include in the next update. That way you’ll avoid interruption and you can go ahead and copy customizer.php to your child theme directory.
That worked. 🙂 (luckily I still had the old setup on my local dev server.)
What I did in the interim was to remove the version I got from the wp.org repo and install the version from github. I had to do some minor code changes in my child theme’s functions.php (to take into account function call differences between 1.x and 2.x), but other than that, things went smoothly.
I’m sure late-comers to the skeleton theme like me would appreciate an update to the tutorial link.
Thank you for coming out with the skeleton theme! It’s not every day that I find a theme that’s as easy to work with.
- The topic ‘Custom options not showing in Customize’ is closed to new replies.