Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community!

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

WordPress WordPress Customizer API Custom WordPress Customizer Settings Custom Text Color Picker and Font-size Settings

Glenn Basgaard
Glenn Basgaard
7,987 Points

Font Size Default = 24px

Not a question as so much of an aid for anybody curious. In this video Zac has you set the default text size for wpt_h1_font_size to 24px. Then when you're adding the control for this setting the choices he listed out are 22, 28, 32, 42px. 24px isn't included in the choices.

When you load your site in Customizer, h1 will be set to the default of 24px. The Font Size control in the H1 Styles section will show 22px, but no worries. You're h1 is set to 24px. All you have to do to see this is inspect the h1 element and the css will show it at 24px.

Its seems bad practice to me to have the default value set to something that isn't a choice in your array, but I'm a beginner at this :P