Building themes with the WordPress Customizer
-
Not SyncedHello everybody.
-
Not SyncedI am going to speak about the WordPress
-
Not Syncedcustomizer. My name is Thad Allender.
-
Not SyncedI am from a very small town in Kansas that I
-
Not Syncedguarantee nobody has ever heard of. So, I won't even
-
Not Synced[audience: Unclear...so small...it's so tiny.
-
Not SyncedSorry. Is it really?
-
Not Synced[audience] What is the town name? It's so tiny I can't
-
Not Syncedsee the town name.
-
Not SyncedSpeaker: Yea, it is not on there.
-
Not Synced[laughter] Speaker: Very clever.
-
Not SyncedI was the director of photography. So, my background
-
Not Syncedis in photography.
-
Not SyncedI moved to DC and was a multi media producer for
-
Not SyncedUSA Today. At the same time I founded
-
Not SyncedGraph Paper Press which is a WordPress theme
-
Not Syncedcompany. We make minimalist stuff.
-
Not Syncedfor photographers and the creative community.
-
Not SyncedWe just launched a new thing called Theme Works.
-
Not SyncedI am going to use what I've learned over the last few
-
Not Syncedyears and talk about the customizer, why it is pretty
-
Not Syncedawesome and why you should use it.
-
Not SyncedHow many people started building static website
-
Not Syncedas their first foray into the web? Ok, as we know
-
Not Syncedstatic websites suck, right? They were horrible to
-
Not Syncedupdate. They take a really long time to change
-
Not Syncednavigation links and this kind of stuff. So, some smart
-
Not Syncedpeople got together and started making dynamic
-
Not Syncedwebsites. First, it was pearl websites.
-
Not SyncedWho used Movable Type back in the day?
-
Not SyncedOk, so me and you, we knew about Movable Type.
-
Not SyncedIt was a dynamic website. All of the sudden my website
-
Not Syncedfroze one day. I started exploring other options. Some
-
Not Syncedof my friends were into python and they
-
Not Syncedsaid, "Hey, you should check out this new thing
-
Not Syncedcalled WordPress." So, there was this big mass
-
Not Syncedmigration 2004-2005. Everybody started loving
-
Not SyncedWordPress. Well, as websites became dynamic
-
Not Syncedpeople wanted to make all aspects of the site
-
Not Synceddynamic. Their logo easy to update and their fonts
-
Not Syncedeasy to change. All these developers started to
-
Not Syncedroll their own code. They made these huge
-
Not Syncedverbose theme option pages, right? Who all has
-
Not Syncedeither rolled their own theme option page or have
-
Not Syncedused one that looks nothing like the WordPress
-
Not Syncedadmin interface? Ok, so a couple of us. Let us take
-
Not Synceda look at what they look like. This is an admin
-
Not Syncedinterface for a theme option panel that is crammed
-
Not Syncedinto WordPress. This is probably what some of us
-
Not Syncedremember or some of us might even use in some of
-
Not Syncedour themes. It is bad, right? It is like an admin panel
-
Not Syncedinside of an admin panel. Here is another one.
-
Not SyncedWe've got DV business line options and a bunch of
-
Not Syncedtext and it is a proprietary theme option page that
-
Not Synceda developer built because there was no consistent
-
Not Syncedway to roll theme options into WordPress.
-
Not SyncedThis last one is my favorite, right? "Don't panic!!"
-
Not SyncedWell, if it says panic it is don't panic.
-
Not SyncedIt is right on the very fist page that you land to start
-
Not Syncedchanging elements of your theme design. All this stuff
-
Not Syncedis really bad. It is kind of like inception. You are in
-
Not Synceda website that is making changes to your theme
-
Not Syncedon a theme options page that is changing the front
-
Not Syncedend of your website. It is very difficult to understand.
-
Not SyncedThere are many different layers of admin panels
-
Not Syncedthat make the whole process of updating your
-
Not Syncedwebsite confusing.
-
Not SyncedA theme that builds other themes is kind of bad.
-
Not SyncedSo, it all had to stop.
-
Not SyncedIt all stops with the customizer.
-
Not SyncedThe customizer is a new thing.
-
Not SyncedWho has used the theme customizer in WordPress?
-
Not SyncedA quick show of hands. Ok, 10-20% I would say.
-
Not SyncedSo, customizer kind of hits on a core principle
-
Not Syncedrelated to code that is true just in the real world.
-
Not SyncedWhy reinvent the wheel? Mark Twain said, "There is
-
Not Syncedsuch thing as a new idea." That's very true.
-
Not SyncedSo, instead of rolling all these new proprietary theme
-
Not Syncedoption page let us just make one thing and have all
-
Not Syncedtheme developers use the same approach?
-
Not SyncedSo, there is no such thing as a new idea.
-
Not SyncedIt is impossible. We simply take a bunch of old ideas
-
Not Syncedand put them through a new sort of mental
-
Not Syncedkaleidoscope, he said. We give them a turn and they
-
Not Syncedmake new and curious combinations. We keep on
-
Not Syncedturning combinations indefinitely. But they are the
-
Not Syncedsame old pieces of colored glass they have been
-
Not Syncedusing throughout the ages. So, Mark Twain said
-
Not Syncedthat. Around 2012 Daryl Koopersmith, a really
-
Not Syncedsmart developer and a core developer started working
-
Not Syncedon this consistent customizer api. Developers like me
-
Not Syncedwere very eager because of all the themes that
-
Not Syncedwe make, we wanted to have a consistent user
-
Not Syncedexperience. And we didn't want to rebrand the
-
Not SyncedWordPress admin interface to make it a confusing
-
Not Syncedexperience for users and developers. The customizer
-
Not Syncedis a couple of things. It is an api. It is a set of
-
Not Syncedstandards that developers can build and customize
-
Not Syncedtheme options and add to WordPress. It is
-
Not Syncedsanitizes your data so there is a lower risk of
-
Not Syncedvulnerabilities that Steve was just talking about.
-
Not SyncedIt is extensible so you can add to it if you'd like.
-
Not SyncedThe best thing is that it is really easy to build untop of.
-
Not SyncedIt is really easy to integrate into themes and it is
-
Not Syncedincredibly easy to use.
-
Not SyncedThis little customizer link, if your theme supports this,
-
Not Syncedyou will have this customizer link underneath
-
Not Syncedappearance inside WordPress. Once you click
-
Not Syncedon that, depending on the options that your theme
-
Not Syncedsupports, you will have a lot or a few options
-
Not Syncedshow up. And this is the customizer.
-
Not SyncedOK. On the right we have a live preview of your
-
Not Syncedwebsite. On the left we have all the options that
-
Not Syncedare available within this theme that control the design
-
Not Syncedaspects of your website. Before we go into show
-
Not Syncedcode examples. and how to actually get this stuff
-
Not Syncedworking if you want to build a theme I think we should
-
Not Syncedall step back and ask ourselves, "Should we even
-
Not Synceddo this?" Because, as you know, as Steve was saying
-
Not Syncedevery line of code is a liability. It has the potential for
-
Not Synceda security vulnerability. Our goal is to write as few
-
Not Syncedlines as code and manage as few lines of code on
-
Not Syncedour websites as possible. There is a that, "We should keep
-
Not Syncedit simple, stupid." KISS is the acronym.
-
Not SyncedAwareness of long term implications of verbose and
-
Not Syncedlots of code goes a long way, as well as knowing
-
Not Syncedyou can hard code things into your website. It will
-
Not Syncedsave you a massive amount of code overhead.
-
Not SyncedHere are reasons why I think you should integrate with
-
Not Syncedthe customizer. If you are going to release public
-
Not Syncedthemes. Who has released a public theme? A theme
-
Not Syncedfor public downloads. Two, if you are making client
-
Not Syncedthemes, if you are going to have consistent changes
-
Not Syncedto your website such as a slide show. It probably
-
Not Syncedmakes sense to not go into code and cowboy some
-
Not Syncedapproach, it probable makes sense to integrate
-
Not Syncedsome programatic approach to your theme and
-
Not Syncedintegrate with the customizer. Or, you could have
-
Not Syncedan undefined scope for a project you are working on.
-
Not SyncedYour client really has not been able to pinpoint
-
Not Syncedexactly what they want. You are kind of left guessing.
-
Not SyncedAnd because you are left guessing you give them
-
Not Syncedoptions. Here are some reasons you shouldn't.
-
Not SyncedOn your person theme, there is no reason to integrate
-
Not Syncedthe customizer on your own personal theme. You can
-
Not Syncedhard code that stuff and it is probably easier to
-
Not Syncedintegrate. There is also a 'no' argument for client
-
Not Syncedthemes. You could have a relationship with a client
-
Not Syncedwhere they come to you because you control code
-
Not Syncedquality and you don't want them tweaking things.
-
Not SyncedIf the site you are building doesn't require any
-
Not Syncedchanges and there is not need for the customizer.
-
Not SyncedAnd if you have a very clear scope and everything is
-
Not Syncedbutton down and there is not reason to integrate the
-
Not Syncedcustomizer. There are four basic building blocks
-
Not Syncedfor using the customizer in a theme or project that
-
Not Syncedyou are working on. The first one is panels.
-
Not SyncedThe second is sections.
-
Not SyncedThen settings. And controls.
-
Not SyncedSo, what you are looking at on your left are
-
Not Syncedsix different panels. There is a general panel,
-
Not Syncedtopography panel, colors, headers, sections and
-
Not Syncedwidgets. You can see that it is a panel because
-
Not Syncedthe arrows are on the right.
- Title:
- Building themes with the WordPress Customizer
- Description:
-
WordPress NYC Meetup at New Work City NYC on May 19 2015
http://www.meetup.com/WordPressNYC/events/222345560/Last month, the WordPress.org theme review team made a new requirement regarding theme options. They are going to be requiring use of the customizer for all options from now. This applies to all new themes, submitted after April 21. Existing themes at WordPress.org have until October 21 to make the change.
In this presentation, you'll learn just how easy it is to integrate the WordPress customizer into your themes. We'll also explore ways to extend the customizer to make it do more than what's available out of the box.
PRESENTER: Thad Allender
Thad Allender is the founder of Graph Paper Press, a WordPress theme design and development studio, and has been working with WordPress since 2005. His themes are available on WordPress.com and WordPress.org. Previously, Thad worked for USA Today as a photographer and multimedia producer. He is a native Kansan who currently lives in Brooklyn with his wife Abby.
https://graphpaperpress.com/More videos: http://wpnyc.org/video/
- Video Language:
- English
- Duration:
- 41:59
Winstina Hughes edited English subtitles for Building themes with the WordPress Customizer | ||
Winstina Hughes edited English subtitles for Building themes with the WordPress Customizer | ||
Winstina Hughes edited English subtitles for Building themes with the WordPress Customizer | ||
Winstina Hughes edited English subtitles for Building themes with the WordPress Customizer | ||
Winstina Hughes edited English subtitles for Building themes with the WordPress Customizer | ||
Winstina Hughes edited English subtitles for Building themes with the WordPress Customizer |