SlideShare a Scribd company logo
Let’s Build
              A
Custom Theme
   WordCamp Orange County 2012
              #wcoc
         @theandystratton
Plan Your Work.
Work Your Plan.
Stay Organized.
     What needs to be dynamic?
Organize assets: HTML/CSS/JS/images.
Static HTML/CSS.
          Highly recommended.
Great reference point for possible browser
         bugs you may find later.
 Keep in a separate folder, use as starting
                  point.
Our Home Page...
Let's Build a Custom Theme
Let's Build a Custom Theme
Our Interior Page...
Let's Build a Custom Theme
Let's Build a Custom Theme
Our Blog Page...
Let's Build a Custom Theme
Let's Build a Custom Theme
Planning our work.
Let's Build a Custom Theme
Link to home page
Link to home page

                    WP Nav Menu
Link to home page

                             WP Nav Menu




    Custom Post Type (slide)
Includes title and featured image.
Let's Build a Custom Theme
Home Page Title/Content
Home Page Title/Content


                   Custom field for
                 anchor text and URL
Let's Build a Custom Theme
Widgetized Sidebar for Footer
Let's Build a Custom Theme
the_title()
the_title()




the_content()
the_title()


           Custom call to
          wp_list_pages()
            (followed by
         widgetized sidebar)



the_content()
Let's Build a Custom Theme
the_date()
       and
comments_number()
the_date()
                       and
                comments_number()




Featured Image, the_title()
    and the_excerpt()
the_date()
                       and
                comments_number()




                             WP Nav Menu
                          & Widgetized Sidebar



Featured Image, the_title()
    and the_excerpt()
BREAK DOWN
   your design into
  MANAGEABLE
WordPress components.
Let’s dive into some

<code/>
Let’s Review.
Stay Organized.
 Plan your work, work your plan.
Organization & planning are key to
    effective & efficient coding.
Isolate HTML/CSS.
        Fastest starting point.
  Focus on user experience, not dev
              experience.
Best way to troubleshoot browser bugs
                 later.
Chunk Things.
  Dissect markup into manageable pieces.
       Header, Footer, Sidebar(s), etc.
  Most can be done with copy/paste and
replacing static functions with WP functions.
Doing It Right.
       Are you doing it wrong?
  Enqueue scripts/styles. Use hooks.
Avoid hard-coding anything that can be
  dynamic, hooked or a widget when
              possible.
Optimized &
     Secure.
       Escape your output.
         Scrub your input.
Use core WordPress API’s/functions
Steal Borrow.
Refer to TwentyTen/TwentyEleven
        View other themes.
 Re-use your code & refine when
           appropriate.
Context Is Queen.
    What functionality do they need?
    Some pieces may not need to be
implemented (e.g. some sites do not have
                blogs)
Maintain
       Experience.
Design for the user, code for the admin.
Maintain the WordPress admin UI when
 adding options/settings screens, etc.
Thanks ;]

More Related Content

PPTX
Your First Wordpress Theme
ODP
PPT
SEO: A Web Design Perspective
PDF
Intro to HTML, CSS & JS - Internship Presentation Week-3
PPTX
HTML CSS and Web Development
PPTX
PDF
Completing Your Design with WordPress
PPT
Dreamweaver_Abhijit
Your First Wordpress Theme
SEO: A Web Design Perspective
Intro to HTML, CSS & JS - Internship Presentation Week-3
HTML CSS and Web Development
Completing Your Design with WordPress
Dreamweaver_Abhijit

What's hot (19)

PPTX
Drupal basics
PPT
CMS 101 Drupal
PPT
CSS For Coders
PPTX
Web Development
PPTX
Building a WordPress theme
PDF
Organize Your Website With Advanced CSS Tricks
PPTX
David Weliver
ODP
Introduction to css & its attributes with syntax
PDF
Introduction to HTML, CSS, and Javascript
PPTX
CSC103 Web Technologies: HTML, CSS, JS
PPTX
Developing branding solutions
PDF
Theme Wrangling 101
PPT
Slide Dot Com
KEY
Introduce PlutoCMS
PDF
Aashish Sharmas Portfolio
PPT
Html class-02
PPTX
HTML language
PDF
Shortcodes: WordUp Pompey! Feb-2012
PPTX
Structuring Content in WordPress using Advanced Custom Fields
Drupal basics
CMS 101 Drupal
CSS For Coders
Web Development
Building a WordPress theme
Organize Your Website With Advanced CSS Tricks
David Weliver
Introduction to css & its attributes with syntax
Introduction to HTML, CSS, and Javascript
CSC103 Web Technologies: HTML, CSS, JS
Developing branding solutions
Theme Wrangling 101
Slide Dot Com
Introduce PlutoCMS
Aashish Sharmas Portfolio
Html class-02
HTML language
Shortcodes: WordUp Pompey! Feb-2012
Structuring Content in WordPress using Advanced Custom Fields
Ad

Viewers also liked (20)

PDF
GeneralMobile Hybrid Development with WordPress
PPT
Content strategy wordcampnash2013
PDF
"Which WordPress Job Is Right For You?" WordCamp Orange County 2015
PPTX
WCSTL 2014 - Powerful Deployments
PDF
Why we publish -- WordCamp Birmingham 2014
PPTX
WordCamp Salvador 2014 - O essencial para o bom desempenho do seu projeto em ...
PDF
Design in WordPress: Three files, unlimited layouts #wcstl
PDF
SEO para Wordpress (WordCamp Salvador)
PDF
Wc norrkoping-2015
PPT
Leveraging Wordpress for an Ecommerce Website
KEY
how to not design like a developer
PDF
Open Source Entrepreneurship
PPT
Customizing the custom loop wordcamp 2012-jeff
PPTX
Working with WP_Query in WordPress
PDF
Just Press Publish
PPTX
Everything You Ever Wanted to Know About Keyword Research (And Probably a Few...
PPTX
Questions you’re too afraid to ask
PPTX
Wordcamp Edmonton - Slides
PDF
Build your site tonight, be blogging tomorrow
PPTX
Responsive Images (STL WordCamp 2014)
GeneralMobile Hybrid Development with WordPress
Content strategy wordcampnash2013
"Which WordPress Job Is Right For You?" WordCamp Orange County 2015
WCSTL 2014 - Powerful Deployments
Why we publish -- WordCamp Birmingham 2014
WordCamp Salvador 2014 - O essencial para o bom desempenho do seu projeto em ...
Design in WordPress: Three files, unlimited layouts #wcstl
SEO para Wordpress (WordCamp Salvador)
Wc norrkoping-2015
Leveraging Wordpress for an Ecommerce Website
how to not design like a developer
Open Source Entrepreneurship
Customizing the custom loop wordcamp 2012-jeff
Working with WP_Query in WordPress
Just Press Publish
Everything You Ever Wanted to Know About Keyword Research (And Probably a Few...
Questions you’re too afraid to ask
Wordcamp Edmonton - Slides
Build your site tonight, be blogging tomorrow
Responsive Images (STL WordCamp 2014)
Ad

Similar to Let's Build a Custom Theme (20)

PDF
Crash Course in Theme Surgery
KEY
Beginners' Guide to WordPress
KEY
A Beginner's Guide to WordPress - WordCamp Montreal 2012
PDF
A Beginner's Guide to WordPress - WordCamp New York City 2012
KEY
A Beginner's Guide to WordPress - WordCamp Toronto 2012
PPTX
Word Press As A Cms
PDF
Newbies guide to customizing word press themes 25
PDF
<Head> Presentation: Plugging Into Wordpress
PDF
Don't Fear the Custom Theme: How to build a custom WordPress theme with only ...
PDF
Using Wordpress with Reclaim Hosting
PPTX
Overview of Using Wordpress for Web Site Design
PDF
A Beginner's Guide to WordPress - Podcamp Toronto 2012
PPTX
MCC Web Design Workshop
PPTX
Word press course
PDF
Keep Your Code Organized! WordCamp Montreal 2013 Presentation slides
PDF
WordPress Intermediate Workshop
PDF
Make WordPress Themes
PPTX
Wordpress workflow for an agency world
KEY
WordPress Developers Israel Meetup #1
PPTX
WordPress as a CMS
Crash Course in Theme Surgery
Beginners' Guide to WordPress
A Beginner's Guide to WordPress - WordCamp Montreal 2012
A Beginner's Guide to WordPress - WordCamp New York City 2012
A Beginner's Guide to WordPress - WordCamp Toronto 2012
Word Press As A Cms
Newbies guide to customizing word press themes 25
<Head> Presentation: Plugging Into Wordpress
Don't Fear the Custom Theme: How to build a custom WordPress theme with only ...
Using Wordpress with Reclaim Hosting
Overview of Using Wordpress for Web Site Design
A Beginner's Guide to WordPress - Podcamp Toronto 2012
MCC Web Design Workshop
Word press course
Keep Your Code Organized! WordCamp Montreal 2013 Presentation slides
WordPress Intermediate Workshop
Make WordPress Themes
Wordpress workflow for an agency world
WordPress Developers Israel Meetup #1
WordPress as a CMS

More from Andy Stratton (10)

PDF
Advanced Custom Post Types
PDF
50 Shades of WordPress
PDF
We Are WordPress
PDF
Everything is Relative: Frameworks, Plugins & SEO
PDF
Accomplish It With Core: Sliders Galleries + More
PDF
Accomplish It With Core: Sliders, Galleries and More
KEY
How To Write a WordPress Plugin
KEY
Diet Pills, SEO & Theme Frameworks: There are no magic bullets.
KEY
WordPress - Open Source Overview Presentation
KEY
Trendsetting: Web Design and Beyond
Advanced Custom Post Types
50 Shades of WordPress
We Are WordPress
Everything is Relative: Frameworks, Plugins & SEO
Accomplish It With Core: Sliders Galleries + More
Accomplish It With Core: Sliders, Galleries and More
How To Write a WordPress Plugin
Diet Pills, SEO & Theme Frameworks: There are no magic bullets.
WordPress - Open Source Overview Presentation
Trendsetting: Web Design and Beyond

Recently uploaded (20)

PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PPTX
Spectroscopy.pptx food analysis technology
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
Empathic Computing: Creating Shared Understanding
PPT
Teaching material agriculture food technology
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
cuic standard and advanced reporting.pdf
PPTX
MYSQL Presentation for SQL database connectivity
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PDF
Encapsulation theory and applications.pdf
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
Encapsulation_ Review paper, used for researhc scholars
Dropbox Q2 2025 Financial Results & Investor Presentation
Network Security Unit 5.pdf for BCA BBA.
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Spectroscopy.pptx food analysis technology
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Empathic Computing: Creating Shared Understanding
Teaching material agriculture food technology
20250228 LYD VKU AI Blended-Learning.pptx
cuic standard and advanced reporting.pdf
MYSQL Presentation for SQL database connectivity
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
Encapsulation theory and applications.pdf
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
Understanding_Digital_Forensics_Presentation.pptx
Mobile App Security Testing_ A Comprehensive Guide.pdf
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Reach Out and Touch Someone: Haptics and Empathic Computing

Let's Build a Custom Theme

Editor's Notes