Since the last update a few days ago, I have been going through WP-Forge, cleaning up a few things in preparation for submission to the theme review team. In the process I came across a few things that I wanted to change.
Not only that but WordPress just released 4.1 and in that release the customizer was updated. After I updated to 4.1 (locally) I noticed that the default values were not being added to the header section on the front end of the theme. Before, all you had to do was make a little change, click save and publish and the all of the values were added to the header.
Since updating to 4.1, the only styles that get added to the header were the ones that were changed in the customizer. This perplexed me so I did a little more research and discovered what I was doing wrong. It seems there are two default values for the customizer. The first is the default value that is used by the customizer in the preview window. These values are pulled directly from the customizer.php file. So if you open up that file, you will see a default value for all of the settings. This is what the customizer uses.
The other default values are used for the custom css that is generated in the header on the front end. Unfortunately the code that was supposed to generate this CSS was written incorrectly. Luckily, I found a reference in the Codex that explained how to do this and so the customizer CSS generating code was re-written. Now all of the default values are added to the header once the theme is activated.
I also added a few things, like a new social menu and I changed a few styles for links and such. For a complete list of changes, please refer to the latest major commit for a list of changes.
And its official, I will be submitting WP-Forge to the theme review team after I finish writing this post. I don’t know exactly what I should be correcting, so I figure I will submit her and see what they send back. I will keep everyone updated on the entire process by posting updates to this post via comments. So if you would like to follow along, make sure you click “Notify me of new comments via email” and you’ll get notified when I post an update.
So there you have it, a new update with a few changes and the beginning of a process that is very scary to me but hopefully it wont be to bad. Wish me luck and as always, enjoy! 😉