Return to Video

Building themes with the WordPress Customizer

  • Not Synced
    Hello everybody.
  • Not Synced
    I am going to speak about the WordPress
  • Not Synced
    customizer. My name is Thad Allender.
  • Not Synced
    I am from a very small town in Kansas that I
  • Not Synced
    guarantee nobody has ever heard of. So, I won't even
  • Not Synced
    [audience: Unclear...so small...it's so tiny.
  • Not Synced
    Sorry. Is it really?
  • Not Synced
    [audience] What is the town name? It's so tiny I can't
  • Not Synced
    see the town name.
  • Not Synced
    Speaker: Yea, it is not on there.
  • Not Synced
    [laughter] Speaker: Very clever.
  • Not Synced
    I was the director of photography. So, my background
  • Not Synced
    is in photography.
  • Not Synced
    I moved to DC and was a multi media producer for
  • Not Synced
    USA Today. At the same time I founded
  • Not Synced
    Graph Paper Press which is a WordPress theme
  • Not Synced
    company. We make minimalist stuff.
  • Not Synced
    for photographers and the creative community.
  • Not Synced
    We just launched a new thing called Theme Works.
  • Not Synced
    I am going to use what I've learned over the last few
  • Not Synced
    years and talk about the customizer, why it is pretty
  • Not Synced
    awesome and why you should use it.
  • Not Synced
    How many people started building static website
  • Not Synced
    as their first foray into the web? Ok, as we know
  • Not Synced
    static websites suck, right? They were horrible to
  • Not Synced
    update. They take a really long time to change
  • Not Synced
    navigation links and this kind of stuff. So, some smart
  • Not Synced
    people got together and started making dynamic
  • Not Synced
    websites. First, it was pearl websites.
  • Not Synced
    Who used Movable Type back in the day?
  • Not Synced
    Ok, so me and you, we knew about Movable Type.
  • Not Synced
    It was a dynamic website. All of the sudden my website
  • Not Synced
    froze one day. I started exploring other options. Some
  • Not Synced
    of my friends were into python and they
  • Not Synced
    said, "Hey, you should check out this new thing
  • Not Synced
    called WordPress." So, there was this big mass
  • Not Synced
    migration 2004-2005. Everybody started loving
  • Not Synced
    WordPress. Well, as websites became dynamic
  • Not Synced
    people wanted to make all aspects of the site
  • Not Synced
    dynamic. Their logo easy to update and their fonts
  • Not Synced
    easy to change. All these developers started to
  • Not Synced
    roll their own code. They made these huge
  • Not Synced
    verbose theme option pages, right? Who all has
  • Not Synced
    either rolled their own theme option page or have
  • Not Synced
    used one that looks nothing like the WordPress
  • Not Synced
    admin interface? Ok, so a couple of us. Let us take
  • Not Synced
    a look at what they look like. This is an admin
  • Not Synced
    interface for a theme option panel that is crammed
  • Not Synced
    into WordPress. This is probably what some of us
  • Not Synced
    remember or some of us might even use in some of
  • Not Synced
    our themes. It is bad, right? It is like an admin panel
  • Not Synced
    inside of an admin panel. Here is another one.
  • Not Synced
    We've got DV business line options and a bunch of
  • Not Synced
    text and it is a proprietary theme option page that
  • Not Synced
    a developer built because there was no consistent
  • Not Synced
    way to roll theme options into WordPress.
  • Not Synced
    This last one is my favorite, right? "Don't panic!!"
  • Not Synced
    Well, if it says panic it is don't panic.
  • Not Synced
    It is right on the very fist page that you land to start
  • Not Synced
    changing elements of your theme design. All this stuff
  • Not Synced
    is really bad. It is kind of like inception. You are in
  • Not Synced
    a website that is making changes to your theme
  • Not Synced
    on a theme options page that is changing the front
  • Not Synced
    end of your website. It is very difficult to understand.
  • Not Synced
    There are many different layers of admin panels
  • Not Synced
    that make the whole process of updating your
  • Not Synced
    website confusing.
  • Not Synced
    A theme that builds other themes is kind of bad.
  • Not Synced
    So, it all had to stop.
  • Not Synced
    It all stops with the customizer.
  • Not Synced
    The customizer is a new thing.
  • Not Synced
    Who has used the theme customizer in WordPress?
  • Not Synced
    A quick show of hands. Ok, 10-20% I would say.
  • Not Synced
    So, customizer kind of hits on a core principle
  • Not Synced
    related to code that is true just in the real world.
  • Not Synced
    Why reinvent the wheel? Mark Twain said, "There is
  • Not Synced
    such thing as a new idea." That's very true.
  • Not Synced
    So, instead of rolling all these new proprietary theme
  • Not Synced
    option page let us just make one thing and have all
  • Not Synced
    theme developers use the same approach?
  • Not Synced
    So, there is no such thing as a new idea.
  • Not Synced
    It is impossible. We simply take a bunch of old ideas
  • Not Synced
    and put them through a new sort of mental
  • Not Synced
    kaleidoscope, he said. We give them a turn and they
  • Not Synced
    make new and curious combinations. We keep on
  • Not Synced
    turning combinations indefinitely. But they are the
  • Not Synced
    same old pieces of colored glass they have been
  • Not Synced
    using throughout the ages. So, Mark Twain said
  • Not Synced
    that. Around 2012 Daryl Koopersmith, a really
  • Not Synced
    smart developer and a core developer started working
  • Not Synced
    on this consistent customizer api. Developers like me
  • Not Synced
    were very eager because of all the themes that
  • Not Synced
    we make, we wanted to have a consistent user
  • Not Synced
    experience. And we didn't want to rebrand the
  • Not Synced
    WordPress admin interface to make it a confusing
  • Not Synced
    experience for users and developers. The customizer
  • Not Synced
    is a couple of things. It is an api. It is a set of
  • Not Synced
    standards that developers can build and customize
  • Not Synced
    theme options and add to WordPress. It is
  • Not Synced
    sanitizes your data so there is a lower risk of
  • Not Synced
    vulnerabilities that Steve was just talking about.
  • Not Synced
    It is extensible so you can add to it if you'd like.
  • Not Synced
    The best thing is that it is really easy to build untop of.
  • Not Synced
    It is really easy to integrate into themes and it is
  • Not Synced
    incredibly easy to use.
  • Not Synced
    This little customizer link, if your theme supports this,
  • Not Synced
    you will have this customizer link underneath
  • Not Synced
    appearance inside WordPress. Once you click
  • Not Synced
    on that, depending on the options that your theme
  • Not Synced
    supports, you will have a lot or a few options
  • Not Synced
    show up. And this is the customizer.
  • Not Synced
    OK. On the right we have a live preview of your
  • Not Synced
    website. On the left we have all the options that
  • Not Synced
    are available within this theme that control the design
  • Not Synced
    aspects of your website. Before we go into show
  • Not Synced
    code examples. and how to actually get this stuff
  • Not Synced
    working if you want to build a theme I think we should
  • Not Synced
    all step back and ask ourselves, "Should we even
  • Not Synced
    do this?" Because, as you know, as Steve was saying
  • Not Synced
    every line of code is a liability. It has the potential for
  • Not Synced
    a security vulnerability. Our goal is to write as few
  • Not Synced
    lines as code and manage as few lines of code on
  • Not Synced
    our websites as possible. There is a that, "We should keep
  • Not Synced
    it simple, stupid." KISS is the acronym.
  • Not Synced
    Awareness of long term implications of verbose and
  • Not Synced
    lots of code goes a long way, as well as knowing
  • Not Synced
    you can hard code things into your website. It will
  • Not Synced
    save you a massive amount of code overhead.
  • Not Synced
    Here are reasons why I think you should integrate with
  • Not Synced
    the customizer. If you are going to release public
  • Not Synced
    themes. Who has released a public theme? A theme
  • Not Synced
    for public downloads. Two, if you are making client
  • Not Synced
    themes, if you are going to have consistent changes
  • Not Synced
    to your website such as a slide show. It probably
  • Not Synced
    makes sense to not go into code and cowboy some
  • Not Synced
    approach, it probable makes sense to integrate
  • Not Synced
    some programatic approach to your theme and
  • Not Synced
    integrate with the customizer. Or, you could have
  • Not Synced
    an undefined scope for a project you are working on.
  • Not Synced
    Your client really has not been able to pinpoint
  • Not Synced
    exactly what they want. You are kind of left guessing.
  • Not Synced
    And because you are left guessing you give them
  • Not Synced
    options. Here are some reasons you shouldn't.
  • Not Synced
    On your person theme, there is no reason to integrate
  • Not Synced
    the customizer on your own personal theme. You can
  • Not Synced
    hard code that stuff and it is probably easier to
  • Not Synced
    integrate. There is also a 'no' argument for client
  • Not Synced
    themes. You could have a relationship with a client
  • Not Synced
    where they come to you because you control code
  • Not Synced
    quality and you don't want them tweaking things.
  • Not Synced
    If the site you are building doesn't require any
  • Not Synced
    changes and there is not need for the customizer.
  • Not Synced
    And if you have a very clear scope and everything is
  • Not Synced
    button down and there is not reason to integrate the
  • Not Synced
    customizer. There are four basic building blocks
  • Not Synced
    for using the customizer in a theme or project that
  • Not Synced
    you are working on. The first one is panels.
  • Not Synced
    The second is sections.
  • Not Synced
    Then settings. And controls.
  • Not Synced
    So, what you are looking at on your left are
  • Not Synced
    six different panels. There is a general panel,
  • Not Synced
    topography panel, colors, headers, sections and
  • Not Synced
    widgets. You can see that it is a panel because
  • Not Synced
    the 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/

more » « less
Video Language:
English
Duration:
41:59

English subtitles

Incomplete

Revisions