SlideShare a Scribd company logo
1 of 28
Getting to Know
Underscores
Jason Yingling
Red8 Interactive
@jason_yingling
[ ]
What We’ll Cover
What _s (underscores) is
Structure of _s
Functionality of _s
How to get started with _s
Who am I?Introduction
Who am I?
What is _s?
What _s isn’t
Why use _s?
Template Structure
Director of Development, Red8 Interactive
3 plugins on WordPress.org repo
3 time WordCamp Speaker
Meetup and WordCamp organizer
@jason_yingling
Functionality
Getting Started
What is _s?Introduction
Who am I?
What is _s?
What it isn’t
Why use _s?
Template Structure
@jason_yingling
Functionality
Getting Started
• Released in 2012 by Automattic
• Maintained on Github
• Collective knowledge of the
WordPress.com Theme Team
• 1,000 hour head start
Without _s
With _s
What it isn’tIntroduction
Who am i?
What is _s?
What it isn’t
Why use _s?
Template Structure
@jason_yingling
Functionality
Getting Started
• Not a plug and play theme
• Not a parent theme
Why use _s?
Less overhead than a full theme
_s
CSS 921 lines
twentysixteen
3,924 lines
Transfer 136kb 331kb
Why use _s?
Learn the best practices
Why use _s?
Get to this faster
Template Structure
Introduction
Hierarchy
Hierarchy
_s structure
_s templates
@jason_yingling
Functionality
Getting Started
How WordPress determines
which template files to use
when displaying a post or page.
“
Template Hierarchy
Single Post within _s
Template Hierarchy
Static Page within _s
Template Structure
Introduction
_s structure
Hierarchy
_s structure
_s templates
@jason_yingling
Functionality
Where to Get _s
• inc
• js
• languages
• layouts
• sass
• template-parts
_s templates
Template Structure
Introduction
Template Tags
Template Tags
Theme Support
@jason_yingling
Functionality
Getting Started
Template tags are used within
your blog's Templates to display
information dynamically or
otherwise customize your blog,
providing the tools to make it as
individual and interesting as you
are.
“
- WordPress Codex
Template Structure
Introduction
Theme Support
Template Tags
Theme Support
@jason_yingling
Functionality
Getting Started
add_theme_support()
Allows a theme or plugin to register
support of a certain theme feature. If
called from a theme, it should be done in
the theme's functions.php file to work.
Template Structure
Introduction
Where to Get _s
Where to Get _s
Find & Replace
Sassify!
Components
@jason_yingling
Functionality
Getting Started
• Github –
https://github.com/Automattic/_s
• Underscores.me -
http://underscores.me/
• Components -
http://components.underscores.me
/
Template Structure
Introduction
Find & Replace
Where to Get _s
Find & Replace
Sassify!
Components
@jason_yingling
Functionality
Getting Started
• Why?
– Prefix your theme to avoid
conflicts with other themes or
plugins
Find & Replace
@jason_yingling
Getting Started
• When you download _s change
the theme directory name to
something new
Template Structure
Introduction
Where to Get _s
Find & Replace
Sassify!
Components
Functionality
Replace The Text Domain
@jason_yingling
Getting Started
• Search for: ‘_s’
• Replace with: ‘theme’
• Include the single quotes
Replace Function Names
• Search for: _s_
• Replace with: theme_
Template Structure
Introduction
Where to Get _s
Find & Replace
Sassify!
Components
Functionality
Replace Text Domain: in
style.css
@jason_yingling
Getting Started
• Search for: Text Domain: _s
• Replace with: Text Domain:
theme
Template Structure
Introduction
Where to Get _s
Find & Replace
Sassify!
Components
Functionality
Replace _s to capture doc
blocks
@jason_yingling
Getting Started
• Search for: _s
– Note: there’s a space in there!
– ‘ _s’ without the quotes
• Replace with: theme
– Space is needed here too
– ‘ theme’ with no quotes
Template Structure
Introduction
Where to Get _s
Find & Replace
Sassify!
Components
Functionality
@jason_yingling
Getting Started
Replace _s- to get prefixed
handles
• Search for: _s-
• Replace with: theme-
Template Structure
Introduction
Where to Get _s
Find & Replace
Sassify!
Components
Functionality
@jason_yingling
Getting Started
Change style.css, footer
links, and readme
• Update the information in these
theme files to personalize your
theme
Template Structure
Introduction
Where to Get _s
Find & Replace
Sassify!
Components
Functionality
@jason_yingling
Getting Started
Sassify!
• Underscores also comes with
sass built-in
• Easy to setup to compile with
grunt, gulp, or Codekit
Template Structure
Introduction
Where to Get _s
Find & Replace
Sassify!
Components
Functionality
@jason_yingling
Getting Started
Components
• Get started even faster
• Choose from:
• Portfolio
• Modern Blog
• Classic Blog
• Business
• Magazine
Template Structure
Introduction
Where to Get _s
Find & Replace
Sassify!
Components
Functionality
Questions
@jason_yingling

More Related Content

What's hot

WordPress Bootcamp Part 3 - Themes
WordPress Bootcamp Part 3 - ThemesWordPress Bootcamp Part 3 - Themes
WordPress Bootcamp Part 3 - ThemesMetronet
 
Skills development contents page
Skills development  contents pageSkills development  contents page
Skills development contents pageshakeira16
 
Why & How to Create a WordPress Plugin
Why & How to Create a WordPress PluginWhy & How to Create a WordPress Plugin
Why & How to Create a WordPress PluginJoe Querin
 
Seo seminar for Vancity Buzz
Seo seminar for Vancity BuzzSeo seminar for Vancity Buzz
Seo seminar for Vancity BuzzDean Brookstone
 
Code & design your first website (3:16)
Code & design your first website (3:16)Code & design your first website (3:16)
Code & design your first website (3:16)Thinkful
 
Managing content online
Managing content onlineManaging content online
Managing content onlineeyadfebc
 
Code & Design your first website 4/18
Code & Design your first website 4/18Code & Design your first website 4/18
Code & Design your first website 4/18TJ Stalcup
 
Basic HTML CSS Slides
Basic HTML CSS Slides Basic HTML CSS Slides
Basic HTML CSS Slides Allyson Wehrs
 
WP101 - Themes and Plugins
WP101 - Themes and PluginsWP101 - Themes and Plugins
WP101 - Themes and PluginsJoe Querin
 
WordPress: Past, Present and Future
WordPress: Past, Present and FutureWordPress: Past, Present and Future
WordPress: Past, Present and FutureJane Wells
 
WP 101 - Custom Fields & Post Types
WP 101 - Custom Fields & Post TypesWP 101 - Custom Fields & Post Types
WP 101 - Custom Fields & Post TypesJoe Querin
 
Core diagram style 7 powerpoint presentation templates
Core diagram style 7 powerpoint presentation templatesCore diagram style 7 powerpoint presentation templates
Core diagram style 7 powerpoint presentation templatesSlideTeam.net
 

What's hot (15)

WordPress Bootcamp Part 3 - Themes
WordPress Bootcamp Part 3 - ThemesWordPress Bootcamp Part 3 - Themes
WordPress Bootcamp Part 3 - Themes
 
Skills development contents page
Skills development  contents pageSkills development  contents page
Skills development contents page
 
Why & How to Create a WordPress Plugin
Why & How to Create a WordPress PluginWhy & How to Create a WordPress Plugin
Why & How to Create a WordPress Plugin
 
Themegallery5
Themegallery5Themegallery5
Themegallery5
 
Seo seminar for Vancity Buzz
Seo seminar for Vancity BuzzSeo seminar for Vancity Buzz
Seo seminar for Vancity Buzz
 
Code & design your first website (3:16)
Code & design your first website (3:16)Code & design your first website (3:16)
Code & design your first website (3:16)
 
Managing content online
Managing content onlineManaging content online
Managing content online
 
Code & Design your first website 4/18
Code & Design your first website 4/18Code & Design your first website 4/18
Code & Design your first website 4/18
 
Basic HTML CSS Slides
Basic HTML CSS Slides Basic HTML CSS Slides
Basic HTML CSS Slides
 
WP101 - Themes and Plugins
WP101 - Themes and PluginsWP101 - Themes and Plugins
WP101 - Themes and Plugins
 
WordPress: Past, Present and Future
WordPress: Past, Present and FutureWordPress: Past, Present and Future
WordPress: Past, Present and Future
 
WP 101 - Custom Fields & Post Types
WP 101 - Custom Fields & Post TypesWP 101 - Custom Fields & Post Types
WP 101 - Custom Fields & Post Types
 
Less is More: Life, Content, Home Pages
Less is More: Life, Content, Home PagesLess is More: Life, Content, Home Pages
Less is More: Life, Content, Home Pages
 
Html lesson1 5
Html lesson1 5Html lesson1 5
Html lesson1 5
 
Core diagram style 7 powerpoint presentation templates
Core diagram style 7 powerpoint presentation templatesCore diagram style 7 powerpoint presentation templates
Core diagram style 7 powerpoint presentation templates
 

Viewers also liked

Teresa Lane - Content Modeling - WordCamp St. Louis 2016
Teresa Lane - Content Modeling - WordCamp St. Louis 2016Teresa Lane - Content Modeling - WordCamp St. Louis 2016
Teresa Lane - Content Modeling - WordCamp St. Louis 2016Teresa Lane
 
Automating WordPress Plugin Development with Gulp
Automating WordPress Plugin Development with GulpAutomating WordPress Plugin Development with Gulp
Automating WordPress Plugin Development with GulpMike Hale
 
Building a Simple Project Plan for WordPress Projects
Building a Simple Project Plan for WordPress ProjectsBuilding a Simple Project Plan for WordPress Projects
Building a Simple Project Plan for WordPress ProjectsLucas Lima
 
Passwords, Attakcks, and Security, oh my!
Passwords, Attakcks, and Security, oh my!Passwords, Attakcks, and Security, oh my!
Passwords, Attakcks, and Security, oh my!Michele Butcher
 
Ryan Markel - WordCamp StL 2016 - Code Review
Ryan Markel - WordCamp StL 2016 - Code ReviewRyan Markel - WordCamp StL 2016 - Code Review
Ryan Markel - WordCamp StL 2016 - Code Reviewryanmarkel
 
How to Make the Most out of Yoast SEO
How to Make the Most out of Yoast SEOHow to Make the Most out of Yoast SEO
How to Make the Most out of Yoast SEONile Flores
 
Doing Things the WordPress Way
Doing Things the WordPress WayDoing Things the WordPress Way
Doing Things the WordPress WayMatt Wiebe
 
Managing_WordPress_Projects_wcstl 2015_Lucas_Lima
Managing_WordPress_Projects_wcstl 2015_Lucas_LimaManaging_WordPress_Projects_wcstl 2015_Lucas_Lima
Managing_WordPress_Projects_wcstl 2015_Lucas_LimaLucas Lima
 
Speeding Up WordPress sites
Speeding Up WordPress sitesSpeeding Up WordPress sites
Speeding Up WordPress sitesJason Yingling
 
Launching a WordPress Site 101 (Cincinnati WordPress, August 2015)
Launching a WordPress Site 101 (Cincinnati WordPress, August 2015)Launching a WordPress Site 101 (Cincinnati WordPress, August 2015)
Launching a WordPress Site 101 (Cincinnati WordPress, August 2015)Andrew Duthie
 
Wordpress as a Backend
Wordpress as a BackendWordpress as a Backend
Wordpress as a BackendAndrew Duthie
 
WordPress Custom Post Types
WordPress Custom Post TypesWordPress Custom Post Types
WordPress Custom Post TypesNile Flores
 
Wordcamp 2010 I'm A Scientist Get me Out of Here - Mike Little
Wordcamp 2010 I'm A Scientist Get me Out of Here - Mike LittleWordcamp 2010 I'm A Scientist Get me Out of Here - Mike Little
Wordcamp 2010 I'm A Scientist Get me Out of Here - Mike LittleMike Little
 
Core plugins - WordCamp UK 2010
Core plugins  - WordCamp UK 2010Core plugins  - WordCamp UK 2010
Core plugins - WordCamp UK 2010Peter Westwood
 
WordPress APIs
WordPress APIsWordPress APIs
WordPress APIsmdawaffe
 
WordPress as a Service
WordPress as a ServiceWordPress as a Service
WordPress as a ServiceAndrew Bauer
 
Empowering Your Clients and Be an Advocate for Yourself
Empowering Your Clients and Be an Advocate for YourselfEmpowering Your Clients and Be an Advocate for Yourself
Empowering Your Clients and Be an Advocate for YourselfLinchpin
 
WordCampBH 2015 - O mínimo essencial para o bom desempenho do seu projeto em ...
WordCampBH 2015 - O mínimo essencial para o bom desempenho do seu projeto em ...WordCampBH 2015 - O mínimo essencial para o bom desempenho do seu projeto em ...
WordCampBH 2015 - O mínimo essencial para o bom desempenho do seu projeto em ...Sergio Costa
 
Sweet Child O' Themes
Sweet Child O' ThemesSweet Child O' Themes
Sweet Child O' ThemesBreno Alves
 

Viewers also liked (20)

Teresa Lane - Content Modeling - WordCamp St. Louis 2016
Teresa Lane - Content Modeling - WordCamp St. Louis 2016Teresa Lane - Content Modeling - WordCamp St. Louis 2016
Teresa Lane - Content Modeling - WordCamp St. Louis 2016
 
Automating WordPress Plugin Development with Gulp
Automating WordPress Plugin Development with GulpAutomating WordPress Plugin Development with Gulp
Automating WordPress Plugin Development with Gulp
 
Building a Simple Project Plan for WordPress Projects
Building a Simple Project Plan for WordPress ProjectsBuilding a Simple Project Plan for WordPress Projects
Building a Simple Project Plan for WordPress Projects
 
Passwords, Attakcks, and Security, oh my!
Passwords, Attakcks, and Security, oh my!Passwords, Attakcks, and Security, oh my!
Passwords, Attakcks, and Security, oh my!
 
Ryan Markel - WordCamp StL 2016 - Code Review
Ryan Markel - WordCamp StL 2016 - Code ReviewRyan Markel - WordCamp StL 2016 - Code Review
Ryan Markel - WordCamp StL 2016 - Code Review
 
How to Make the Most out of Yoast SEO
How to Make the Most out of Yoast SEOHow to Make the Most out of Yoast SEO
How to Make the Most out of Yoast SEO
 
Doing Things the WordPress Way
Doing Things the WordPress WayDoing Things the WordPress Way
Doing Things the WordPress Way
 
Ithemes presentation
Ithemes presentationIthemes presentation
Ithemes presentation
 
Managing_WordPress_Projects_wcstl 2015_Lucas_Lima
Managing_WordPress_Projects_wcstl 2015_Lucas_LimaManaging_WordPress_Projects_wcstl 2015_Lucas_Lima
Managing_WordPress_Projects_wcstl 2015_Lucas_Lima
 
Speeding Up WordPress sites
Speeding Up WordPress sitesSpeeding Up WordPress sites
Speeding Up WordPress sites
 
Launching a WordPress Site 101 (Cincinnati WordPress, August 2015)
Launching a WordPress Site 101 (Cincinnati WordPress, August 2015)Launching a WordPress Site 101 (Cincinnati WordPress, August 2015)
Launching a WordPress Site 101 (Cincinnati WordPress, August 2015)
 
Wordpress as a Backend
Wordpress as a BackendWordpress as a Backend
Wordpress as a Backend
 
WordPress Custom Post Types
WordPress Custom Post TypesWordPress Custom Post Types
WordPress Custom Post Types
 
Wordcamp 2010 I'm A Scientist Get me Out of Here - Mike Little
Wordcamp 2010 I'm A Scientist Get me Out of Here - Mike LittleWordcamp 2010 I'm A Scientist Get me Out of Here - Mike Little
Wordcamp 2010 I'm A Scientist Get me Out of Here - Mike Little
 
Core plugins - WordCamp UK 2010
Core plugins  - WordCamp UK 2010Core plugins  - WordCamp UK 2010
Core plugins - WordCamp UK 2010
 
WordPress APIs
WordPress APIsWordPress APIs
WordPress APIs
 
WordPress as a Service
WordPress as a ServiceWordPress as a Service
WordPress as a Service
 
Empowering Your Clients and Be an Advocate for Yourself
Empowering Your Clients and Be an Advocate for YourselfEmpowering Your Clients and Be an Advocate for Yourself
Empowering Your Clients and Be an Advocate for Yourself
 
WordCampBH 2015 - O mínimo essencial para o bom desempenho do seu projeto em ...
WordCampBH 2015 - O mínimo essencial para o bom desempenho do seu projeto em ...WordCampBH 2015 - O mínimo essencial para o bom desempenho do seu projeto em ...
WordCampBH 2015 - O mínimo essencial para o bom desempenho do seu projeto em ...
 
Sweet Child O' Themes
Sweet Child O' ThemesSweet Child O' Themes
Sweet Child O' Themes
 

Similar to Getting to Know Underscores

Minimalist Theming: How to Build a Lean, Mean Drupal 8 Theme
Minimalist Theming: How to Build a Lean, Mean Drupal 8 ThemeMinimalist Theming: How to Build a Lean, Mean Drupal 8 Theme
Minimalist Theming: How to Build a Lean, Mean Drupal 8 ThemeSuzanne Dergacheva
 
Howdoesgettemplatepartworksintwentytentheme 110123234953-phpapp02
Howdoesgettemplatepartworksintwentytentheme 110123234953-phpapp02Howdoesgettemplatepartworksintwentytentheme 110123234953-phpapp02
Howdoesgettemplatepartworksintwentytentheme 110123234953-phpapp02sos informatique
 
What are child themes, and why use them
What are child themes, and why use themWhat are child themes, and why use them
What are child themes, and why use themUtsav Singh Rathour
 
Streamlining Your Template Structures When Building Themes
Streamlining Your Template Structures When Building ThemesStreamlining Your Template Structures When Building Themes
Streamlining Your Template Structures When Building ThemesCameron Jones
 
WordPress Theme Workshop: Part 1
WordPress Theme Workshop: Part 1WordPress Theme Workshop: Part 1
WordPress Theme Workshop: Part 1David Bisset
 
Theming moodle technical
Theming moodle   technicalTheming moodle   technical
Theming moodle technicalAlex Walker
 
WordPress Theme Design and Development Workshop - Day 2
WordPress Theme Design and Development Workshop - Day 2WordPress Theme Design and Development Workshop - Day 2
WordPress Theme Design and Development Workshop - Day 2Mizanur Rahaman Mizan
 
WordPress theme frameworks
WordPress theme frameworksWordPress theme frameworks
WordPress theme frameworksEddie Johnston
 
Responsive themeworkshop wcneo2016
Responsive themeworkshop wcneo2016Responsive themeworkshop wcneo2016
Responsive themeworkshop wcneo2016David Brattoli
 
Maximize the All In One SEO Wordpress Plugin
Maximize the All In One SEO Wordpress PluginMaximize the All In One SEO Wordpress Plugin
Maximize the All In One SEO Wordpress PluginScott Stawarz
 
Choosing the Right WordPress Theme
Choosing the Right WordPress ThemeChoosing the Right WordPress Theme
Choosing the Right WordPress ThemeChris Burgess
 
Styled Components & React.js
Styled Components & React.jsStyled Components & React.js
Styled Components & React.jsGrayson Hicks
 
JSLink for ITPros - SharePoint Saturday Jersey
JSLink for ITPros - SharePoint Saturday JerseyJSLink for ITPros - SharePoint Saturday Jersey
JSLink for ITPros - SharePoint Saturday JerseyPaul Hunt
 
Writing a WordPress Theme - HighEdWeb 2013 #WRK2
Writing a WordPress Theme - HighEdWeb 2013 #WRK2Writing a WordPress Theme - HighEdWeb 2013 #WRK2
Writing a WordPress Theme - HighEdWeb 2013 #WRK2Curtiss Grymala
 
WordPress Themes - Finding and Choosing what is Best for you.
WordPress Themes - Finding and Choosing what is Best for you.WordPress Themes - Finding and Choosing what is Best for you.
WordPress Themes - Finding and Choosing what is Best for you.AndyStaple
 
Child Themes in WordPress
Child Themes in WordPressChild Themes in WordPress
Child Themes in WordPressJeff Cohan
 
Microsoft_brand_template_blue.potx
Microsoft_brand_template_blue.potxMicrosoft_brand_template_blue.potx
Microsoft_brand_template_blue.potxPhanTien25
 
How To Choose A Theme
How To Choose A ThemeHow To Choose A Theme
How To Choose A ThemeNicky Pink
 

Similar to Getting to Know Underscores (20)

Minimalist Theming: How to Build a Lean, Mean Drupal 8 Theme
Minimalist Theming: How to Build a Lean, Mean Drupal 8 ThemeMinimalist Theming: How to Build a Lean, Mean Drupal 8 Theme
Minimalist Theming: How to Build a Lean, Mean Drupal 8 Theme
 
Howdoesgettemplatepartworksintwentytentheme 110123234953-phpapp02
Howdoesgettemplatepartworksintwentytentheme 110123234953-phpapp02Howdoesgettemplatepartworksintwentytentheme 110123234953-phpapp02
Howdoesgettemplatepartworksintwentytentheme 110123234953-phpapp02
 
What are child themes, and why use them
What are child themes, and why use themWhat are child themes, and why use them
What are child themes, and why use them
 
Streamlining Your Template Structures When Building Themes
Streamlining Your Template Structures When Building ThemesStreamlining Your Template Structures When Building Themes
Streamlining Your Template Structures When Building Themes
 
WordPress Theme Workshop: Part 1
WordPress Theme Workshop: Part 1WordPress Theme Workshop: Part 1
WordPress Theme Workshop: Part 1
 
Theming moodle technical
Theming moodle   technicalTheming moodle   technical
Theming moodle technical
 
WordPress Theme Design and Development Workshop - Day 2
WordPress Theme Design and Development Workshop - Day 2WordPress Theme Design and Development Workshop - Day 2
WordPress Theme Design and Development Workshop - Day 2
 
WordPress theme frameworks
WordPress theme frameworksWordPress theme frameworks
WordPress theme frameworks
 
HTML/CSS for WordPress
HTML/CSS for WordPressHTML/CSS for WordPress
HTML/CSS for WordPress
 
Nanocon Taiwan
Nanocon TaiwanNanocon Taiwan
Nanocon Taiwan
 
Responsive themeworkshop wcneo2016
Responsive themeworkshop wcneo2016Responsive themeworkshop wcneo2016
Responsive themeworkshop wcneo2016
 
Maximize the All In One SEO Wordpress Plugin
Maximize the All In One SEO Wordpress PluginMaximize the All In One SEO Wordpress Plugin
Maximize the All In One SEO Wordpress Plugin
 
Choosing the Right WordPress Theme
Choosing the Right WordPress ThemeChoosing the Right WordPress Theme
Choosing the Right WordPress Theme
 
Styled Components & React.js
Styled Components & React.jsStyled Components & React.js
Styled Components & React.js
 
JSLink for ITPros - SharePoint Saturday Jersey
JSLink for ITPros - SharePoint Saturday JerseyJSLink for ITPros - SharePoint Saturday Jersey
JSLink for ITPros - SharePoint Saturday Jersey
 
Writing a WordPress Theme - HighEdWeb 2013 #WRK2
Writing a WordPress Theme - HighEdWeb 2013 #WRK2Writing a WordPress Theme - HighEdWeb 2013 #WRK2
Writing a WordPress Theme - HighEdWeb 2013 #WRK2
 
WordPress Themes - Finding and Choosing what is Best for you.
WordPress Themes - Finding and Choosing what is Best for you.WordPress Themes - Finding and Choosing what is Best for you.
WordPress Themes - Finding and Choosing what is Best for you.
 
Child Themes in WordPress
Child Themes in WordPressChild Themes in WordPress
Child Themes in WordPress
 
Microsoft_brand_template_blue.potx
Microsoft_brand_template_blue.potxMicrosoft_brand_template_blue.potx
Microsoft_brand_template_blue.potx
 
How To Choose A Theme
How To Choose A ThemeHow To Choose A Theme
How To Choose A Theme
 

More from Jason Yingling

WordPress Security Best Practices
WordPress Security Best PracticesWordPress Security Best Practices
WordPress Security Best PracticesJason Yingling
 
Installing WP-CLI locally
Installing WP-CLI locallyInstalling WP-CLI locally
Installing WP-CLI locallyJason Yingling
 
Getting Started with Gutenberg Development
Getting Started with Gutenberg DevelopmentGetting Started with Gutenberg Development
Getting Started with Gutenberg DevelopmentJason Yingling
 
Customizing the WordPress Customizer
Customizing the WordPress CustomizerCustomizing the WordPress Customizer
Customizing the WordPress CustomizerJason Yingling
 
Battling Google PageSpeed Insights
Battling Google PageSpeed InsightsBattling Google PageSpeed Insights
Battling Google PageSpeed InsightsJason Yingling
 
Putting the Develop in Development
Putting the Develop in Development Putting the Develop in Development
Putting the Develop in Development Jason Yingling
 
Creating Dynamic Sidebars & Widgets in WordPress
Creating Dynamic Sidebars & Widgets in WordPressCreating Dynamic Sidebars & Widgets in WordPress
Creating Dynamic Sidebars & Widgets in WordPressJason Yingling
 
WordPress Template hierarchy
WordPress Template hierarchyWordPress Template hierarchy
WordPress Template hierarchyJason Yingling
 
Building Flexible Sites with Advanced Custom Fields
Building Flexible Sites with Advanced Custom FieldsBuilding Flexible Sites with Advanced Custom Fields
Building Flexible Sites with Advanced Custom FieldsJason Yingling
 

More from Jason Yingling (12)

WordPress Security Best Practices
WordPress Security Best PracticesWordPress Security Best Practices
WordPress Security Best Practices
 
Installing WP-CLI locally
Installing WP-CLI locallyInstalling WP-CLI locally
Installing WP-CLI locally
 
Getting Started with Gutenberg Development
Getting Started with Gutenberg DevelopmentGetting Started with Gutenberg Development
Getting Started with Gutenberg Development
 
Plugin development
Plugin developmentPlugin development
Plugin development
 
Introducing CSS Grid
Introducing CSS GridIntroducing CSS Grid
Introducing CSS Grid
 
Customizing the WordPress Customizer
Customizing the WordPress CustomizerCustomizing the WordPress Customizer
Customizing the WordPress Customizer
 
Battling Google PageSpeed Insights
Battling Google PageSpeed InsightsBattling Google PageSpeed Insights
Battling Google PageSpeed Insights
 
Putting the Develop in Development
Putting the Develop in Development Putting the Develop in Development
Putting the Develop in Development
 
Creating Dynamic Sidebars & Widgets in WordPress
Creating Dynamic Sidebars & Widgets in WordPressCreating Dynamic Sidebars & Widgets in WordPress
Creating Dynamic Sidebars & Widgets in WordPress
 
WordPress Template hierarchy
WordPress Template hierarchyWordPress Template hierarchy
WordPress Template hierarchy
 
Design todevelop
Design todevelopDesign todevelop
Design todevelop
 
Building Flexible Sites with Advanced Custom Fields
Building Flexible Sites with Advanced Custom FieldsBuilding Flexible Sites with Advanced Custom Fields
Building Flexible Sites with Advanced Custom Fields
 

Recently uploaded

DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDropbox
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Zilliz
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobeapidays
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...DianaGray10
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProduct Anonymous
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoffsammart93
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...Zilliz
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century educationjfdjdjcjdnsjd
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Jeffrey Haguewood
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FMESafe Software
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyKhushali Kathiriya
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAndrey Devyatkin
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdfSandro Moreira
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistandanishmna97
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...apidays
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingEdi Saputra
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxRustici Software
 

Recently uploaded (20)

DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 

Getting to Know Underscores

  • 1. Getting to Know Underscores Jason Yingling Red8 Interactive @jason_yingling [ ]
  • 2. What We’ll Cover What _s (underscores) is Structure of _s Functionality of _s How to get started with _s
  • 3. Who am I?Introduction Who am I? What is _s? What _s isn’t Why use _s? Template Structure Director of Development, Red8 Interactive 3 plugins on WordPress.org repo 3 time WordCamp Speaker Meetup and WordCamp organizer @jason_yingling Functionality Getting Started
  • 4. What is _s?Introduction Who am I? What is _s? What it isn’t Why use _s? Template Structure @jason_yingling Functionality Getting Started • Released in 2012 by Automattic • Maintained on Github • Collective knowledge of the WordPress.com Theme Team • 1,000 hour head start
  • 7. What it isn’tIntroduction Who am i? What is _s? What it isn’t Why use _s? Template Structure @jason_yingling Functionality Getting Started • Not a plug and play theme • Not a parent theme
  • 8. Why use _s? Less overhead than a full theme _s CSS 921 lines twentysixteen 3,924 lines Transfer 136kb 331kb
  • 9. Why use _s? Learn the best practices
  • 10. Why use _s? Get to this faster
  • 11. Template Structure Introduction Hierarchy Hierarchy _s structure _s templates @jason_yingling Functionality Getting Started How WordPress determines which template files to use when displaying a post or page. “
  • 14. Template Structure Introduction _s structure Hierarchy _s structure _s templates @jason_yingling Functionality Where to Get _s • inc • js • languages • layouts • sass • template-parts
  • 16. Template Structure Introduction Template Tags Template Tags Theme Support @jason_yingling Functionality Getting Started Template tags are used within your blog's Templates to display information dynamically or otherwise customize your blog, providing the tools to make it as individual and interesting as you are. “ - WordPress Codex
  • 17. Template Structure Introduction Theme Support Template Tags Theme Support @jason_yingling Functionality Getting Started add_theme_support() Allows a theme or plugin to register support of a certain theme feature. If called from a theme, it should be done in the theme's functions.php file to work.
  • 18. Template Structure Introduction Where to Get _s Where to Get _s Find & Replace Sassify! Components @jason_yingling Functionality Getting Started • Github – https://github.com/Automattic/_s • Underscores.me - http://underscores.me/ • Components - http://components.underscores.me /
  • 19. Template Structure Introduction Find & Replace Where to Get _s Find & Replace Sassify! Components @jason_yingling Functionality Getting Started • Why? – Prefix your theme to avoid conflicts with other themes or plugins
  • 20. Find & Replace @jason_yingling Getting Started • When you download _s change the theme directory name to something new Template Structure Introduction Where to Get _s Find & Replace Sassify! Components Functionality
  • 21. Replace The Text Domain @jason_yingling Getting Started • Search for: ‘_s’ • Replace with: ‘theme’ • Include the single quotes Replace Function Names • Search for: _s_ • Replace with: theme_ Template Structure Introduction Where to Get _s Find & Replace Sassify! Components Functionality
  • 22. Replace Text Domain: in style.css @jason_yingling Getting Started • Search for: Text Domain: _s • Replace with: Text Domain: theme Template Structure Introduction Where to Get _s Find & Replace Sassify! Components Functionality
  • 23. Replace _s to capture doc blocks @jason_yingling Getting Started • Search for: _s – Note: there’s a space in there! – ‘ _s’ without the quotes • Replace with: theme – Space is needed here too – ‘ theme’ with no quotes Template Structure Introduction Where to Get _s Find & Replace Sassify! Components Functionality
  • 24. @jason_yingling Getting Started Replace _s- to get prefixed handles • Search for: _s- • Replace with: theme- Template Structure Introduction Where to Get _s Find & Replace Sassify! Components Functionality
  • 25. @jason_yingling Getting Started Change style.css, footer links, and readme • Update the information in these theme files to personalize your theme Template Structure Introduction Where to Get _s Find & Replace Sassify! Components Functionality
  • 26. @jason_yingling Getting Started Sassify! • Underscores also comes with sass built-in • Easy to setup to compile with grunt, gulp, or Codekit Template Structure Introduction Where to Get _s Find & Replace Sassify! Components Functionality
  • 27. @jason_yingling Getting Started Components • Get started even faster • Choose from: • Portfolio • Modern Blog • Classic Blog • Business • Magazine Template Structure Introduction Where to Get _s Find & Replace Sassify! Components Functionality

Editor's Notes

  1. The name _s also called underscores
  2. The name _s also called underscores
  3. The name _s also called underscores
  4. Break out of the presentation and show folders and files contained within. Cover some of what they do. End on template parts and go back to PowerPoint
  5. Switch to the code for single.php Switch to next section to discuss the_posts_navigation()
  6. -get_header() – pulls in header.php -get_template_part() – Let’s you pull in a custom template part. -single_post_title() - Displays or returns the title of the post when on a single post page -bloginfo() – Displays info about current site. Pass it parameters like ‘name’, ‘description’, ‘template_directory’ -BUT Underscores also has it’s own that provide additional functionality. -- posted on and entry footer
  7. -- underscores supports things like post thumbnails, post formats -- Show how to remove support for certain post formats -- Show how to add the_custom_logo() support via WordPress 4.5
  8. Show how to fork form github and pull down into a site with git Show how to pull from underscores.me -Show configuration for SASS compiling Show components