SlideShare a Scribd company logo
WordPress
Design to Development
Jason Yingling
@jason_yingling
Objectives
• Review the tools needed to design and
develop WordPress sites
• Briefly cover some common steps for
designing WordPress themes
• Overview of WordPress template hierarchy
• Introduce common WordPress functions
• Convert HTML into a WordPress template
What You Will Need
• Design Software
– Photoshop
– Sketch
– Illustrator
– WebFlow
What You Will Need
• Text Editor
– Coda (Mac - Paid)
– Sublime Text (Mac - Free and Paid )
– Atom by Github (Mac - Free)
– Notepad++ (Windows - Free)
Theme Template
• Underscores (_s)
• Bones
• What are these?
– Stripped down WordPress themes with just the
basics you need to start building your own theme.
Languages
• HTML
• CSS
• PHP
• Javascript
Dev Environment
• MAMP Pro OR Vagrant
• phpMyAdmin
• Sequel Pro
Optional (but recommended)
• SASS
• Compiler / Task Runner
– Grunt (Free)
– Gulp (Free)
– Codekit (Paid)
• Grid System
– Bourbon (neat.buorbon.io)
– Bootstrap (getbootstrap.com)
Designing a Site
• Researching
• Planning
• Wireframing
• Designing
Researching
• Always be researching
• Resources
– Dribbble
– Behance
– Awwwards
– ThemeForest (top sellers)
Project Description
Define what is being built.
Create a simple layout for showing some basic
WordPress development practices.
Project Goals
Set a few goals for the project based on your
project description.
1. Use The Loop to pull in recent posts
2. Register and pull in a WordPress menu
3. Pull in a sidebar and footer
4. Pull in a template part for the post content
Audience
Who will this project be for?
Designers and developers looking to gain basic
insight into building a WordPress theme.
Final Planning
• Specified Research
• Sketch ideas
• Sitemap / Template List
• Create a list of
deliverables
– Wire frames
– PSD Designs
– Theme files
• Set milestones for
completing project
Wireframing
• Let’s you quickly put
together a layout
without having to spend
too much time getting
into details of site
• Doesn’t have to be the
final design
• Keep it quick
• Wireframing Tools
– Balsamiq
– InVision
Designing
• Select Fonts
– Try to stick to 1 or 2
fonts
• Select Colors
– Don’t use too many
colors
• Start designing
– Stick to the grid!
Developing for WordPress
Custom Theme
• Best when building a completely custom
theme when using a boilerplate
– i.e. underscores (_s) or Bones
Child Theme
• Best when building on top of an existing
theme
Template Hierarchy
• index.php
– The main template file. It is required in all themes. Commonly
used for the main loop. Fallback for other templates.
• header.php
– The header template file usually contains your site’s document
type, meta information, links to style sheets, and other data.
• footer.php
– Used for generating the footer of the site. Typically includes the
wp_footer() option.
• sidebar.php
– Used for generating site’s sidebars.
Template Hierarchy
• single.php
– The single post template is used when a visitor
requests a single post.
• archive.php
– Template used for displaying categories, post
types, etc. unless otherwise specified.
• archive-news.php
– Template used for displaying the news post type
(if that post type exists)
Template Hierarchy
• functions.php
– Used for adding feature and functionality to sites.
– i.e. register sidebars and menu locations
• style.css
– The main stylesheet. It is required in all themes
and contains the information header for your
theme.
Common WordPress Page
• Typically consists of 3-4 parts
– Header
– Content
– Sidebar
– Footer
The Loop
• The Loop is PHP code used by WordPress to
display posts.
Breaking Down The Loop
• if ( have_posts() ) :
– Checks with WordPress to see if we even have any posts to
return.
• while ( have_posts() ) :
– Now that we have posts we need to know what to do with
them while we’ve got them.
• the_post();
– This function iterates the post index and grabs the next
post, sets up the post data, and let’s WordPress know that
we are within The Loop.
• More information
– https://jasonyingling.me/loop-there-it-is/
Working with Menus
• register_nav_menus()
– Registers a menu theme location
• wp_nav_menu()
– Displays a navigation menu created in the
Appearance → Menus panel.
Using Template Parts
• get_template_part( $slug, $name );
– Let’s you compartmentalize portions of your
WordPress theme
– Great for returning different layouts for post-
formats or reusing code in multiple places
• get_sidebar( $name );
– Pulls in the sidebar
• get_footer( $name );
– Pulls in the footer
Setting up a Dev Environment
• MAMP
– https://codex.wordpress.org/Installing_WordPress
_Locally_on_Your_Mac_With_MAMP
• Vagrant
– https://jasonyingling.me/setting-up-a-local-
wordpress-environment-with-vagrant/
Setup WordPress
• Open wp-config-sample.php
• Edit Database name
• Edit Database user
• Edit Database password
• Save as wp-config.php
Additional Resources
• Smashing WordPress
• Up and Running WP
• The Essential Web Design Handbook
• WP Beginner
• Tuts+

More Related Content

What's hot (20)

PPTX
Atlanta Drupal User Group (ADUG)
Mediacurrent
 
PPTX
WordPress Themes 101 - dotEduGuru Summit 2013
Curtiss Grymala
 
PPTX
WordPress Themes 101 - HighEdWeb New England 2013
Curtiss Grymala
 
PDF
Minimalist Theming: How to Build a Lean, Mean Drupal 8 Theme
Suzanne Dergacheva
 
PDF
WordPress Template Hierarchy
Sarah Whinnem
 
PPTX
WordPress Template hierarchy
Jason Yingling
 
PDF
Drupal Developer Skills (2012) - DrupalCamp LA 2012
Chris Charlton
 
PDF
WordPress as a CMS - Case Study of an Organizational Intranet
Tech Liminal
 
PPSX
WordPress Theme Design and Development Workshop - Day 2
Mizanur Rahaman Mizan
 
PDF
Gajendra sharma Drupal Module development
Gajendra Sharma
 
PPTX
Less presentation
Todd Shelton
 
PPTX
Anatomy and Architecture of a WordPress Theme
Julie Kuehl
 
PPTX
Web 101 intro to html
Hawkman Academy
 
PDF
Thinkful - Frontend Crash Course - Intro to HTML/CSS
TJ Stalcup
 
PPTX
NEPA BlogCon 2013 - WordPress Customization & Security
Michelle Davies (Hryvnak)
 
PDF
WordPress Theme Workshop: Part 1
David Bisset
 
PPTX
Day 2 - Intro to Rails
Barry Jones
 
PPTX
WordPress Customization and Security
Joe Casabona
 
KEY
Open Source CMS Playroom
librarywebchic
 
Atlanta Drupal User Group (ADUG)
Mediacurrent
 
WordPress Themes 101 - dotEduGuru Summit 2013
Curtiss Grymala
 
WordPress Themes 101 - HighEdWeb New England 2013
Curtiss Grymala
 
Minimalist Theming: How to Build a Lean, Mean Drupal 8 Theme
Suzanne Dergacheva
 
WordPress Template Hierarchy
Sarah Whinnem
 
WordPress Template hierarchy
Jason Yingling
 
Drupal Developer Skills (2012) - DrupalCamp LA 2012
Chris Charlton
 
WordPress as a CMS - Case Study of an Organizational Intranet
Tech Liminal
 
WordPress Theme Design and Development Workshop - Day 2
Mizanur Rahaman Mizan
 
Gajendra sharma Drupal Module development
Gajendra Sharma
 
Less presentation
Todd Shelton
 
Anatomy and Architecture of a WordPress Theme
Julie Kuehl
 
Web 101 intro to html
Hawkman Academy
 
Thinkful - Frontend Crash Course - Intro to HTML/CSS
TJ Stalcup
 
NEPA BlogCon 2013 - WordPress Customization & Security
Michelle Davies (Hryvnak)
 
WordPress Theme Workshop: Part 1
David Bisset
 
Day 2 - Intro to Rails
Barry Jones
 
WordPress Customization and Security
Joe Casabona
 
Open Source CMS Playroom
librarywebchic
 

Viewers also liked (11)

PPTX
Presentation1 caprioara
David-Ionut Doicaru
 
PPTX
North HIll Welcoming Schools Activity
jballgolf
 
PPTX
Putting the Develop in Development
Jason Yingling
 
PPTX
Speeding Up WordPress sites
Jason Yingling
 
PPTX
Building Flexible Sites with Advanced Custom Fields
Jason Yingling
 
PPTX
Getting to Know Underscores
Jason Yingling
 
PDF
LEAN UX – FAIL FAST, SUCCEED FASTER
René Preußer
 
PPTX
Scavenger hunt ppt
Ruth Branham
 
PPT
Dairy Cattle Introduction
cambruzzir
 
PPTX
Creating Dynamic Sidebars & Widgets in WordPress
Jason Yingling
 
PDF
Agricultural Policy Brief - Women and Cross-Border Trade
Liz Caselli-Mechael
 
Presentation1 caprioara
David-Ionut Doicaru
 
North HIll Welcoming Schools Activity
jballgolf
 
Putting the Develop in Development
Jason Yingling
 
Speeding Up WordPress sites
Jason Yingling
 
Building Flexible Sites with Advanced Custom Fields
Jason Yingling
 
Getting to Know Underscores
Jason Yingling
 
LEAN UX – FAIL FAST, SUCCEED FASTER
René Preußer
 
Scavenger hunt ppt
Ruth Branham
 
Dairy Cattle Introduction
cambruzzir
 
Creating Dynamic Sidebars & Widgets in WordPress
Jason Yingling
 
Agricultural Policy Brief - Women and Cross-Border Trade
Liz Caselli-Mechael
 
Ad

Similar to Design todevelop (20)

PPTX
Wordpress website development
John Faust
 
PPTX
MCC Web Design Workshop
Faye Tandog
 
PDF
Make WordPress Themes
Alison Foxall
 
ODP
Wordpress as a CMS
Michael Hammel
 
PDF
Don't Fear the Custom Theme: How to build a custom WordPress theme with only ...
LinnAlexandra
 
PPTX
Word press course
Judith Gotwald
 
PDF
WordCamp Raleigh 2018 - Beginner's Guide to Wordpress
Convinsys
 
PPT
WordPress 2.5 Overview - Rich Media Institute
Brendan Sera-Shriar
 
PDF
Anatomy of a Wordpress theme
Dave Wallace
 
PPT
W pthemes
Becky Davis
 
PDF
Intro to WordPress theme development
Thad Allender
 
PPT
Wordpress Beyond A Blog Word Camp Toronto08
Jamie Oastler
 
PPT
WordPress Theme Design - Rich Media Institute Workshop
Brendan Sera-Shriar
 
PPTX
Introduction to Custom WordPress Themeing
Jamie Schmid
 
PDF
Word camp Raleigh 2017 - Wordpress for Beginners
Convinsys
 
PDF
Wordpress Guide
Sunanda Bansal
 
PPT
Wordpress template hierarchy
Stockton Group
 
PPTX
Basic word press development
David Wolfpaw
 
PDF
Beginning WordPress Workshop
The Toolbox, Inc.
 
PDF
WordPress Theming 101
Zero Point Development
 
Wordpress website development
John Faust
 
MCC Web Design Workshop
Faye Tandog
 
Make WordPress Themes
Alison Foxall
 
Wordpress as a CMS
Michael Hammel
 
Don't Fear the Custom Theme: How to build a custom WordPress theme with only ...
LinnAlexandra
 
Word press course
Judith Gotwald
 
WordCamp Raleigh 2018 - Beginner's Guide to Wordpress
Convinsys
 
WordPress 2.5 Overview - Rich Media Institute
Brendan Sera-Shriar
 
Anatomy of a Wordpress theme
Dave Wallace
 
W pthemes
Becky Davis
 
Intro to WordPress theme development
Thad Allender
 
Wordpress Beyond A Blog Word Camp Toronto08
Jamie Oastler
 
WordPress Theme Design - Rich Media Institute Workshop
Brendan Sera-Shriar
 
Introduction to Custom WordPress Themeing
Jamie Schmid
 
Word camp Raleigh 2017 - Wordpress for Beginners
Convinsys
 
Wordpress Guide
Sunanda Bansal
 
Wordpress template hierarchy
Stockton Group
 
Basic word press development
David Wolfpaw
 
Beginning WordPress Workshop
The Toolbox, Inc.
 
WordPress Theming 101
Zero Point Development
 
Ad

More from Jason Yingling (8)

PDF
WordPress Security Best Practices
Jason Yingling
 
PPTX
Installing WP-CLI locally
Jason Yingling
 
PPTX
Getting Started with Gutenberg Development
Jason Yingling
 
PPTX
Plugin development
Jason Yingling
 
PPTX
Introducing CSS Grid
Jason Yingling
 
PPTX
Customizing the WordPress Customizer
Jason Yingling
 
PDF
Battling Google PageSpeed Insights
Jason Yingling
 
PPTX
Ithemes presentation
Jason Yingling
 
WordPress Security Best Practices
Jason Yingling
 
Installing WP-CLI locally
Jason Yingling
 
Getting Started with Gutenberg Development
Jason Yingling
 
Plugin development
Jason Yingling
 
Introducing CSS Grid
Jason Yingling
 
Customizing the WordPress Customizer
Jason Yingling
 
Battling Google PageSpeed Insights
Jason Yingling
 
Ithemes presentation
Jason Yingling
 

Recently uploaded (20)

PDF
Building Resilience with Digital Twins : Lessons from Korea
SANGHEE SHIN
 
PPTX
Building a Production-Ready Barts Health Secure Data Environment Tooling, Acc...
Barts Health
 
PDF
HR agent at Mediq: Lessons learned on Agent Builder & Maestro by Tacstone Tec...
UiPathCommunity
 
PPTX
Simplifying End-to-End Apache CloudStack Deployment with a Web-Based Automati...
ShapeBlue
 
PDF
Impact of IEEE Computer Society in Advancing Emerging Technologies including ...
Hironori Washizaki
 
PDF
Shuen Mei Parth Sharma Boost Productivity, Innovation and Efficiency wit...
AWS Chicago
 
PDF
SWEBOK Guide and Software Services Engineering Education
Hironori Washizaki
 
PDF
Are there government-backed agri-software initiatives in Limerick.pdf
giselawagner2
 
PDF
Meetup Kickoff & Welcome - Rohit Yadav, CSIUG Chairman
ShapeBlue
 
PPTX
UI5Con 2025 - Beyond UI5 Controls with the Rise of Web Components
Wouter Lemaire
 
PDF
TrustArc Webinar - Data Privacy Trends 2025: Mid-Year Insights & Program Stra...
TrustArc
 
PPTX
Darren Mills The Migration Modernization Balancing Act: Navigating Risks and...
AWS Chicago
 
PDF
Arcee AI - building and working with small language models (06/25)
Julien SIMON
 
PDF
NewMind AI Journal - Weekly Chronicles - July'25 Week II
NewMind AI
 
PDF
How Current Advanced Cyber Threats Transform Business Operation
Eryk Budi Pratama
 
PPTX
The Yotta x CloudStack Advantage: Scalable, India-First Cloud
ShapeBlue
 
PDF
"Effect, Fiber & Schema: tactical and technical characteristics of Effect.ts"...
Fwdays
 
PDF
UiPath vs Other Automation Tools Meeting Presentation.pdf
Tracy Dixon
 
PDF
Productivity Management Software | Workstatus
Lovely Baghel
 
PPTX
Lifting and Rigging Safety AQG-2025-2.pptx
farrukhkhan658034
 
Building Resilience with Digital Twins : Lessons from Korea
SANGHEE SHIN
 
Building a Production-Ready Barts Health Secure Data Environment Tooling, Acc...
Barts Health
 
HR agent at Mediq: Lessons learned on Agent Builder & Maestro by Tacstone Tec...
UiPathCommunity
 
Simplifying End-to-End Apache CloudStack Deployment with a Web-Based Automati...
ShapeBlue
 
Impact of IEEE Computer Society in Advancing Emerging Technologies including ...
Hironori Washizaki
 
Shuen Mei Parth Sharma Boost Productivity, Innovation and Efficiency wit...
AWS Chicago
 
SWEBOK Guide and Software Services Engineering Education
Hironori Washizaki
 
Are there government-backed agri-software initiatives in Limerick.pdf
giselawagner2
 
Meetup Kickoff & Welcome - Rohit Yadav, CSIUG Chairman
ShapeBlue
 
UI5Con 2025 - Beyond UI5 Controls with the Rise of Web Components
Wouter Lemaire
 
TrustArc Webinar - Data Privacy Trends 2025: Mid-Year Insights & Program Stra...
TrustArc
 
Darren Mills The Migration Modernization Balancing Act: Navigating Risks and...
AWS Chicago
 
Arcee AI - building and working with small language models (06/25)
Julien SIMON
 
NewMind AI Journal - Weekly Chronicles - July'25 Week II
NewMind AI
 
How Current Advanced Cyber Threats Transform Business Operation
Eryk Budi Pratama
 
The Yotta x CloudStack Advantage: Scalable, India-First Cloud
ShapeBlue
 
"Effect, Fiber & Schema: tactical and technical characteristics of Effect.ts"...
Fwdays
 
UiPath vs Other Automation Tools Meeting Presentation.pdf
Tracy Dixon
 
Productivity Management Software | Workstatus
Lovely Baghel
 
Lifting and Rigging Safety AQG-2025-2.pptx
farrukhkhan658034
 

Design todevelop

  • 1. WordPress Design to Development Jason Yingling @jason_yingling
  • 2. Objectives • Review the tools needed to design and develop WordPress sites • Briefly cover some common steps for designing WordPress themes • Overview of WordPress template hierarchy • Introduce common WordPress functions • Convert HTML into a WordPress template
  • 3. What You Will Need • Design Software – Photoshop – Sketch – Illustrator – WebFlow
  • 4. What You Will Need • Text Editor – Coda (Mac - Paid) – Sublime Text (Mac - Free and Paid ) – Atom by Github (Mac - Free) – Notepad++ (Windows - Free)
  • 5. Theme Template • Underscores (_s) • Bones • What are these? – Stripped down WordPress themes with just the basics you need to start building your own theme.
  • 6. Languages • HTML • CSS • PHP • Javascript
  • 7. Dev Environment • MAMP Pro OR Vagrant • phpMyAdmin • Sequel Pro
  • 8. Optional (but recommended) • SASS • Compiler / Task Runner – Grunt (Free) – Gulp (Free) – Codekit (Paid) • Grid System – Bourbon (neat.buorbon.io) – Bootstrap (getbootstrap.com)
  • 9. Designing a Site • Researching • Planning • Wireframing • Designing
  • 10. Researching • Always be researching • Resources – Dribbble – Behance – Awwwards – ThemeForest (top sellers)
  • 11. Project Description Define what is being built. Create a simple layout for showing some basic WordPress development practices.
  • 12. Project Goals Set a few goals for the project based on your project description. 1. Use The Loop to pull in recent posts 2. Register and pull in a WordPress menu 3. Pull in a sidebar and footer 4. Pull in a template part for the post content
  • 13. Audience Who will this project be for? Designers and developers looking to gain basic insight into building a WordPress theme.
  • 14. Final Planning • Specified Research • Sketch ideas • Sitemap / Template List • Create a list of deliverables – Wire frames – PSD Designs – Theme files • Set milestones for completing project
  • 15. Wireframing • Let’s you quickly put together a layout without having to spend too much time getting into details of site • Doesn’t have to be the final design • Keep it quick • Wireframing Tools – Balsamiq – InVision
  • 16. Designing • Select Fonts – Try to stick to 1 or 2 fonts • Select Colors – Don’t use too many colors • Start designing – Stick to the grid!
  • 17. Developing for WordPress Custom Theme • Best when building a completely custom theme when using a boilerplate – i.e. underscores (_s) or Bones Child Theme • Best when building on top of an existing theme
  • 18. Template Hierarchy • index.php – The main template file. It is required in all themes. Commonly used for the main loop. Fallback for other templates. • header.php – The header template file usually contains your site’s document type, meta information, links to style sheets, and other data. • footer.php – Used for generating the footer of the site. Typically includes the wp_footer() option. • sidebar.php – Used for generating site’s sidebars.
  • 19. Template Hierarchy • single.php – The single post template is used when a visitor requests a single post. • archive.php – Template used for displaying categories, post types, etc. unless otherwise specified. • archive-news.php – Template used for displaying the news post type (if that post type exists)
  • 20. Template Hierarchy • functions.php – Used for adding feature and functionality to sites. – i.e. register sidebars and menu locations • style.css – The main stylesheet. It is required in all themes and contains the information header for your theme.
  • 21. Common WordPress Page • Typically consists of 3-4 parts – Header – Content – Sidebar – Footer
  • 22. The Loop • The Loop is PHP code used by WordPress to display posts.
  • 23. Breaking Down The Loop • if ( have_posts() ) : – Checks with WordPress to see if we even have any posts to return. • while ( have_posts() ) : – Now that we have posts we need to know what to do with them while we’ve got them. • the_post(); – This function iterates the post index and grabs the next post, sets up the post data, and let’s WordPress know that we are within The Loop. • More information – https://jasonyingling.me/loop-there-it-is/
  • 24. Working with Menus • register_nav_menus() – Registers a menu theme location • wp_nav_menu() – Displays a navigation menu created in the Appearance → Menus panel.
  • 25. Using Template Parts • get_template_part( $slug, $name ); – Let’s you compartmentalize portions of your WordPress theme – Great for returning different layouts for post- formats or reusing code in multiple places • get_sidebar( $name ); – Pulls in the sidebar • get_footer( $name ); – Pulls in the footer
  • 26. Setting up a Dev Environment • MAMP – https://codex.wordpress.org/Installing_WordPress _Locally_on_Your_Mac_With_MAMP • Vagrant – https://jasonyingling.me/setting-up-a-local- wordpress-environment-with-vagrant/
  • 27. Setup WordPress • Open wp-config-sample.php • Edit Database name • Edit Database user • Edit Database password • Save as wp-config.php
  • 28. Additional Resources • Smashing WordPress • Up and Running WP • The Essential Web Design Handbook • WP Beginner • Tuts+

Editor's Notes

  • #5: You’ll want a text editor. There’s a variety of free and paid choices each with their own strengths. I’ve used Coda for the most part, but have recently been testing Atom.
  • #7: You can get away without knowing a lot of PHP, but a general idea of IF statements and WHILE loops will really help. Javascript is optional
  • #8: -You’ll need an environment that can run PHP code and a MySQL database -MAMP has a free and pro version -Vagrant is free but requires a little more setup
  • #10: 4 main steps in designing a site
  • #12: Write out your project description. This will get you thinking about what this project is going to be, and help you focus.
  • #13: Further specify by defining a few specific goals.
  • #14: Then you’ll want to set your audience for the theme. You could also specify the end user of the site as well here.
  • #16: Next step is wireframing
  • #18: There’s two methods for creating custom themes. Custom theme – is a completely custom build using a theme boilerplate Child theme – is creating a second theme on top of an existing theme to make use of the existing (parent) theme’s functionality. We’re going to focus on custom builds.
  • #19: Before we start let’s cover some of the basic templates within a WordPress theme.
  • #26: We’re also going to look at using template parts. Basically template parts let you compartmentalize your code. So it can be reused throughout the site where possible, and helps keep your code clean and readable.
  • #27: WordPress requires a connection to a database
  • #28: Jump out at this point.