SlideShare uma empresa Scribd logo
1 de 44
WordPress Themes
& Gutenberg
with Rich Tabor
@richard_tabor
richtabor.com
I skate to where to puck is going to
be, not where it has been.
— Wayne Gretzky
WordPress Themes
of Today
It’s a mess.
1. One theme to rule them all.
2. Themes with page building built-in.
3. Themes compatible with specific page builders.
4. Theme lock-in.
5. You don’t know what you’re buying, ‘till you install it.
6. Disjointed WordPress experience.
WordPress Themes
of Tomorrow
A Future of Blocks
❖ Blocks are a fundamental shift in how content is
created within WordPress.
❖ In today’s WordPress, there are a multitude of ways to
add very similar content... like widgets and
shortcodes.
Blocks to Replace
Shortcodes
But it will...
❖ Shortcodes output content without any UI
❖ Mystery meat
❖ Content blocks are the new shortcodes
❖ Blocks are shortcodes with a UI
Blocks to Replace Widgets
& Widget Areas
❖ Block API is more flexible than the Widgets API
❖ All widgets should should appear as blocks
❖ There’s no difference between blocks and widgets
❖ No need for widget visibility settings
Block Templates
❖ Pre-defined templates of blocks
❖ Blocks can have predefined attributes, placeholder
content, and be static or dynamic.
❖ Block templates specify a default initial state for an
editor session.
❖ Custom post types can register templates
❖ Block templates for posts and pages too
❖ Locking Block Templates
❖ All — Prevents all operations
❖ Insert — Enable reordering, but prevents inserting new blocks
Block Templates are a
Work in Progress
…but the Future is Bright
The key thing with page templates
is that we want all of it to be
potentially covered by blocks, not
just the_content.
— Matias Ventura
As soon as we expand the scope, include more
blocks (site title, header, menus, widgets, etc), and
describe a way to store page templates as a list of
blocks, Gutenberg would be fundamentally capable
of building an entire website.
— Matias Ventura
What About
Page Builders?
Page Builders, as we
know them today, are
on borrowed time
❖ Nobody wants a shortcode soup
❖ Nobody wants the complex interfaces authors
build to hide/manage them
❖ Why would folks accept with difficult experiences
when we can have a familiar (and great) native
experience everywhere?
WordPress Themes
of the Future
The future of themes can become
more about empowering users to
work on their vision, instead of
always having to learn how to theme.
— David A. Kennedy, Automattic
Companion Block Plugins
❖ Blocks built to expand your theme’s purpose
❖ Example: A simple blog theme may have ad
placement blocks, blogroll posts blocks, call to
actions, etc
❖ Themes can also support third-party blocks by adding
custom styling
Should custom blocks
be built into themes?
Nope.
❖ When a block no longer exists, the HTML markup is
spit out, instead of a [button color=””/] code
❖ You still lose any subjective styles that your theme
has applied — but objective styles should remain
(as they should be built into themes)
Styling Gutenberg
❖ You’ll likely need additional styles to resolve conflicts
❖ Gutenberg loads its own styles for many blocks
(buttons, block quotes, images, galleries, cover
images, horizontal rules, etc)
❖ Do not load the entire frontend stylesheet into the
Gutenberg editor
❖ Prepend with .edit-post-visual-editor
❖ SASS comes in handy
Resources
❖ github.com/wordpress/gutenberg-starter-theme
❖ github.com/wordpress/gutenberg
❖ richtabor.com/add-wordpress-theme-styles-to-gutenberg
Questions?

Mais conteúdo relacionado

Mais procurados

Word Camp North Canton 2013 - Say what? Say that again in plain English...
Word Camp North Canton 2013 - Say what? Say that again in plain English...Word Camp North Canton 2013 - Say what? Say that again in plain English...
Word Camp North Canton 2013 - Say what? Say that again in plain English...Brian Layman
 
WordCamp Sheffield 2014 Theme Workflow Presentation
WordCamp Sheffield 2014 Theme Workflow PresentationWordCamp Sheffield 2014 Theme Workflow Presentation
WordCamp Sheffield 2014 Theme Workflow PresentationJonny Allbut
 
58 Ways To Build A Better Blog
58 Ways To Build A Better Blog58 Ways To Build A Better Blog
58 Ways To Build A Better BlogMarko Saric
 
Building the next generation of themes with WP Rig 2.0
Building the next generation of themes with WP Rig 2.0Building the next generation of themes with WP Rig 2.0
Building the next generation of themes with WP Rig 2.0Morten Rand-Hendriksen
 
Sydjs: static site generators
Sydjs: static site generatorsSydjs: static site generators
Sydjs: static site generatorsBen Buchanan
 
Build WordPress themes like a heavyweight - WordCamp Lancaster 2013
Build WordPress themes like a heavyweight - WordCamp Lancaster 2013Build WordPress themes like a heavyweight - WordCamp Lancaster 2013
Build WordPress themes like a heavyweight - WordCamp Lancaster 2013Jonny Allbut
 

Mais procurados (8)

Web components. Compose the web.
Web components. Compose the web.Web components. Compose the web.
Web components. Compose the web.
 
Word Camp North Canton 2013 - Say what? Say that again in plain English...
Word Camp North Canton 2013 - Say what? Say that again in plain English...Word Camp North Canton 2013 - Say what? Say that again in plain English...
Word Camp North Canton 2013 - Say what? Say that again in plain English...
 
WordCamp Sheffield 2014 Theme Workflow Presentation
WordCamp Sheffield 2014 Theme Workflow PresentationWordCamp Sheffield 2014 Theme Workflow Presentation
WordCamp Sheffield 2014 Theme Workflow Presentation
 
How to Build Custom WordPress Blocks
How to Build Custom WordPress BlocksHow to Build Custom WordPress Blocks
How to Build Custom WordPress Blocks
 
58 Ways To Build A Better Blog
58 Ways To Build A Better Blog58 Ways To Build A Better Blog
58 Ways To Build A Better Blog
 
Building the next generation of themes with WP Rig 2.0
Building the next generation of themes with WP Rig 2.0Building the next generation of themes with WP Rig 2.0
Building the next generation of themes with WP Rig 2.0
 
Sydjs: static site generators
Sydjs: static site generatorsSydjs: static site generators
Sydjs: static site generators
 
Build WordPress themes like a heavyweight - WordCamp Lancaster 2013
Build WordPress themes like a heavyweight - WordCamp Lancaster 2013Build WordPress themes like a heavyweight - WordCamp Lancaster 2013
Build WordPress themes like a heavyweight - WordCamp Lancaster 2013
 

Semelhante a WordPress Themes & Gutenberg with Rich Tabor

How word press themes work 2.19.18
How word press themes work 2.19.18How word press themes work 2.19.18
How word press themes work 2.19.18HandsOnWP.com
 
How WordPress Themes Work
How WordPress Themes WorkHow WordPress Themes Work
How WordPress Themes WorkHandsOnWP.com
 
Architecting with Style
Architecting with StyleArchitecting with Style
Architecting with StyleTimothy Knight
 
Between a Block & a Hard Place
Between a Block & a Hard PlaceBetween a Block & a Hard Place
Between a Block & a Hard PlaceWP Engine
 
Content Architectures in WordPress 5
Content Architectures in WordPress 5Content Architectures in WordPress 5
Content Architectures in WordPress 5Jamie Schmid
 
Be the Change: The Future of WordPress with WP Engine's Developer Relations Team
Be the Change: The Future of WordPress with WP Engine's Developer Relations TeamBe the Change: The Future of WordPress with WP Engine's Developer Relations Team
Be the Change: The Future of WordPress with WP Engine's Developer Relations TeamWP Engine
 
April 2016 - Atlanta WordPress Users Group - Child Themes
April 2016 - Atlanta WordPress Users Group - Child ThemesApril 2016 - Atlanta WordPress Users Group - Child Themes
April 2016 - Atlanta WordPress Users Group - Child ThemesEric Sembrat
 
Efficiently theming a multi-site Drupal 8 portal - Drupal Dev Days Seville 2017
Efficiently theming a multi-site Drupal 8 portal - Drupal Dev Days Seville 2017Efficiently theming a multi-site Drupal 8 portal - Drupal Dev Days Seville 2017
Efficiently theming a multi-site Drupal 8 portal - Drupal Dev Days Seville 2017La Drupalera
 
Developing Custom WordPress Themes for Clients
Developing Custom WordPress Themes for ClientsDeveloping Custom WordPress Themes for Clients
Developing Custom WordPress Themes for ClientsSteven Slack
 
Overview of Using Wordpress for Web Site Design
Overview of Using Wordpress for Web Site DesignOverview of Using Wordpress for Web Site Design
Overview of Using Wordpress for Web Site DesignAmy Goodloe
 
WordCamp Miami 09 - WP Framework
WordCamp Miami 09 - WP FrameworkWordCamp Miami 09 - WP Framework
WordCamp Miami 09 - WP FrameworkPtah Dunbar
 
The Power of Page Builder Plugins in Building a WordPress Site
 - Presented b...
The Power of Page Builder Plugins in Building a WordPress Site
 - Presented b...The Power of Page Builder Plugins in Building a WordPress Site
 - Presented b...
The Power of Page Builder Plugins in Building a WordPress Site
 - Presented b...WordCamp Harare
 
WordPress and Accessibility
WordPress and AccessibilityWordPress and Accessibility
WordPress and AccessibilityJoseph Dolson
 
Child Themes and CSS in WordPress
Child Themes and CSS in WordPressChild Themes and CSS in WordPress
Child Themes and CSS in WordPressMatthew Vaccaro
 
How to select, install and customize a WordPress theme
How to select, install and customize a WordPress themeHow to select, install and customize a WordPress theme
How to select, install and customize a WordPress themeStefanie Drucker
 
Theme frameworks & child themes
Theme frameworks & child themesTheme frameworks & child themes
Theme frameworks & child themesChris Olbekson
 
WordCamp Kent 2019 - WP 101: Guten.. What?
WordCamp Kent 2019 - WP 101: Guten.. What?WordCamp Kent 2019 - WP 101: Guten.. What?
WordCamp Kent 2019 - WP 101: Guten.. What?Joe Querin
 
Building Websites with WordPress UBC Summer 2012
Building Websites with WordPress UBC Summer 2012Building Websites with WordPress UBC Summer 2012
Building Websites with WordPress UBC Summer 2012Tris Hussey
 

Semelhante a WordPress Themes & Gutenberg with Rich Tabor (20)

How word press themes work 2.19.18
How word press themes work 2.19.18How word press themes work 2.19.18
How word press themes work 2.19.18
 
How WordPress Themes Work
How WordPress Themes WorkHow WordPress Themes Work
How WordPress Themes Work
 
Architecting with Style
Architecting with StyleArchitecting with Style
Architecting with Style
 
Between a Block & a Hard Place
Between a Block & a Hard PlaceBetween a Block & a Hard Place
Between a Block & a Hard Place
 
Content Architectures in WordPress 5
Content Architectures in WordPress 5Content Architectures in WordPress 5
Content Architectures in WordPress 5
 
Be the Change: The Future of WordPress with WP Engine's Developer Relations Team
Be the Change: The Future of WordPress with WP Engine's Developer Relations TeamBe the Change: The Future of WordPress with WP Engine's Developer Relations Team
Be the Change: The Future of WordPress with WP Engine's Developer Relations Team
 
April 2016 - Atlanta WordPress Users Group - Child Themes
April 2016 - Atlanta WordPress Users Group - Child ThemesApril 2016 - Atlanta WordPress Users Group - Child Themes
April 2016 - Atlanta WordPress Users Group - Child Themes
 
Efficiently theming a multi-site Drupal 8 portal - Drupal Dev Days Seville 2017
Efficiently theming a multi-site Drupal 8 portal - Drupal Dev Days Seville 2017Efficiently theming a multi-site Drupal 8 portal - Drupal Dev Days Seville 2017
Efficiently theming a multi-site Drupal 8 portal - Drupal Dev Days Seville 2017
 
Customizing WordPress Themes
Customizing WordPress ThemesCustomizing WordPress Themes
Customizing WordPress Themes
 
Developing Custom WordPress Themes for Clients
Developing Custom WordPress Themes for ClientsDeveloping Custom WordPress Themes for Clients
Developing Custom WordPress Themes for Clients
 
Overview of Using Wordpress for Web Site Design
Overview of Using Wordpress for Web Site DesignOverview of Using Wordpress for Web Site Design
Overview of Using Wordpress for Web Site Design
 
WordCamp Miami 09 - WP Framework
WordCamp Miami 09 - WP FrameworkWordCamp Miami 09 - WP Framework
WordCamp Miami 09 - WP Framework
 
Wordpress overview
Wordpress overviewWordpress overview
Wordpress overview
 
The Power of Page Builder Plugins in Building a WordPress Site
 - Presented b...
The Power of Page Builder Plugins in Building a WordPress Site
 - Presented b...The Power of Page Builder Plugins in Building a WordPress Site
 - Presented b...
The Power of Page Builder Plugins in Building a WordPress Site
 - Presented b...
 
WordPress and Accessibility
WordPress and AccessibilityWordPress and Accessibility
WordPress and Accessibility
 
Child Themes and CSS in WordPress
Child Themes and CSS in WordPressChild Themes and CSS in WordPress
Child Themes and CSS in WordPress
 
How to select, install and customize a WordPress theme
How to select, install and customize a WordPress themeHow to select, install and customize a WordPress theme
How to select, install and customize a WordPress theme
 
Theme frameworks & child themes
Theme frameworks & child themesTheme frameworks & child themes
Theme frameworks & child themes
 
WordCamp Kent 2019 - WP 101: Guten.. What?
WordCamp Kent 2019 - WP 101: Guten.. What?WordCamp Kent 2019 - WP 101: Guten.. What?
WordCamp Kent 2019 - WP 101: Guten.. What?
 
Building Websites with WordPress UBC Summer 2012
Building Websites with WordPress UBC Summer 2012Building Websites with WordPress UBC Summer 2012
Building Websites with WordPress UBC Summer 2012
 

Último

Unit 1.1 Excite Part 1, class 9, cbse...
Unit 1.1 Excite Part 1, class 9, cbse...Unit 1.1 Excite Part 1, class 9, cbse...
Unit 1.1 Excite Part 1, class 9, cbse...aditisharan08
 
5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdfWave PLM
 
Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...OnePlan Solutions
 
Project Based Learning (A.I).pptx detail explanation
Project Based Learning (A.I).pptx detail explanationProject Based Learning (A.I).pptx detail explanation
Project Based Learning (A.I).pptx detail explanationkaushalgiri8080
 
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...gurkirankumar98700
 
chapter--4-software-project-planning.ppt
chapter--4-software-project-planning.pptchapter--4-software-project-planning.ppt
chapter--4-software-project-planning.pptkotipi9215
 
Cloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStackCloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStackVICTOR MAESTRE RAMIREZ
 
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed Data
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed DataAlluxio Monthly Webinar | Cloud-Native Model Training on Distributed Data
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed DataAlluxio, Inc.
 
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASEBATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASEOrtus Solutions, Corp
 
Building Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
Building Real-Time Data Pipelines: Stream & Batch Processing workshop SlideBuilding Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
Building Real-Time Data Pipelines: Stream & Batch Processing workshop SlideChristina Lin
 
Unlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language ModelsUnlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language Modelsaagamshah0812
 
DNT_Corporate presentation know about us
DNT_Corporate presentation know about usDNT_Corporate presentation know about us
DNT_Corporate presentation know about usDynamic Netsoft
 
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfThe Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfkalichargn70th171
 
Asset Management Software - Infographic
Asset Management Software - InfographicAsset Management Software - Infographic
Asset Management Software - InfographicHr365.us smith
 
TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providermohitmore19
 
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfLearn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfkalichargn70th171
 
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsUnveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsAlberto González Trastoy
 
Salesforce Certified Field Service Consultant
Salesforce Certified Field Service ConsultantSalesforce Certified Field Service Consultant
Salesforce Certified Field Service ConsultantAxelRicardoTrocheRiq
 

Último (20)

Unit 1.1 Excite Part 1, class 9, cbse...
Unit 1.1 Excite Part 1, class 9, cbse...Unit 1.1 Excite Part 1, class 9, cbse...
Unit 1.1 Excite Part 1, class 9, cbse...
 
5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf
 
Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...
 
Project Based Learning (A.I).pptx detail explanation
Project Based Learning (A.I).pptx detail explanationProject Based Learning (A.I).pptx detail explanation
Project Based Learning (A.I).pptx detail explanation
 
Exploring iOS App Development: Simplifying the Process
Exploring iOS App Development: Simplifying the ProcessExploring iOS App Development: Simplifying the Process
Exploring iOS App Development: Simplifying the Process
 
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
 
chapter--4-software-project-planning.ppt
chapter--4-software-project-planning.pptchapter--4-software-project-planning.ppt
chapter--4-software-project-planning.ppt
 
Cloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStackCloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStack
 
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed Data
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed DataAlluxio Monthly Webinar | Cloud-Native Model Training on Distributed Data
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed Data
 
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASEBATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
 
Building Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
Building Real-Time Data Pipelines: Stream & Batch Processing workshop SlideBuilding Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
Building Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
 
Unlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language ModelsUnlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language Models
 
DNT_Corporate presentation know about us
DNT_Corporate presentation know about usDNT_Corporate presentation know about us
DNT_Corporate presentation know about us
 
Call Girls In Mukherjee Nagar 📱 9999965857 🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...
Call Girls In Mukherjee Nagar 📱  9999965857  🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...Call Girls In Mukherjee Nagar 📱  9999965857  🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...
Call Girls In Mukherjee Nagar 📱 9999965857 🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...
 
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfThe Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
 
Asset Management Software - Infographic
Asset Management Software - InfographicAsset Management Software - Infographic
Asset Management Software - Infographic
 
TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service provider
 
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfLearn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
 
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsUnveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
 
Salesforce Certified Field Service Consultant
Salesforce Certified Field Service ConsultantSalesforce Certified Field Service Consultant
Salesforce Certified Field Service Consultant
 

WordPress Themes & Gutenberg with Rich Tabor

  • 4. I skate to where to puck is going to be, not where it has been. — Wayne Gretzky
  • 7. 1. One theme to rule them all. 2. Themes with page building built-in. 3. Themes compatible with specific page builders. 4. Theme lock-in. 5. You don’t know what you’re buying, ‘till you install it. 6. Disjointed WordPress experience.
  • 9. A Future of Blocks
  • 10. ❖ Blocks are a fundamental shift in how content is created within WordPress. ❖ In today’s WordPress, there are a multitude of ways to add very similar content... like widgets and shortcodes.
  • 12.
  • 14. ❖ Shortcodes output content without any UI ❖ Mystery meat ❖ Content blocks are the new shortcodes ❖ Blocks are shortcodes with a UI
  • 15.
  • 16. Blocks to Replace Widgets & Widget Areas
  • 17. ❖ Block API is more flexible than the Widgets API ❖ All widgets should should appear as blocks ❖ There’s no difference between blocks and widgets ❖ No need for widget visibility settings
  • 19. ❖ Pre-defined templates of blocks ❖ Blocks can have predefined attributes, placeholder content, and be static or dynamic. ❖ Block templates specify a default initial state for an editor session.
  • 20.
  • 21. ❖ Custom post types can register templates ❖ Block templates for posts and pages too ❖ Locking Block Templates ❖ All — Prevents all operations ❖ Insert — Enable reordering, but prevents inserting new blocks
  • 22.
  • 23. Block Templates are a Work in Progress
  • 24. …but the Future is Bright
  • 25. The key thing with page templates is that we want all of it to be potentially covered by blocks, not just the_content. — Matias Ventura
  • 26. As soon as we expand the scope, include more blocks (site title, header, menus, widgets, etc), and describe a way to store page templates as a list of blocks, Gutenberg would be fundamentally capable of building an entire website. — Matias Ventura
  • 28. Page Builders, as we know them today, are on borrowed time
  • 29. ❖ Nobody wants a shortcode soup ❖ Nobody wants the complex interfaces authors build to hide/manage them ❖ Why would folks accept with difficult experiences when we can have a familiar (and great) native experience everywhere?
  • 31. The future of themes can become more about empowering users to work on their vision, instead of always having to learn how to theme. — David A. Kennedy, Automattic
  • 33.
  • 34. ❖ Blocks built to expand your theme’s purpose ❖ Example: A simple blog theme may have ad placement blocks, blogroll posts blocks, call to actions, etc ❖ Themes can also support third-party blocks by adding custom styling
  • 35. Should custom blocks be built into themes?
  • 36. Nope.
  • 37. ❖ When a block no longer exists, the HTML markup is spit out, instead of a [button color=””/] code ❖ You still lose any subjective styles that your theme has applied — but objective styles should remain (as they should be built into themes)
  • 39. ❖ You’ll likely need additional styles to resolve conflicts ❖ Gutenberg loads its own styles for many blocks (buttons, block quotes, images, galleries, cover images, horizontal rules, etc)
  • 40.
  • 41. ❖ Do not load the entire frontend stylesheet into the Gutenberg editor ❖ Prepend with .edit-post-visual-editor ❖ SASS comes in handy

Notas do Editor

  1. Hi my name is Rich Tabor I’m a theme developer, 7 years, ThemeBeans Also review themes at ThemeForest Naomi reached out to me I’ve been writing, talking and sharing a lot about gutenberg lately — so much that my wife has to ask me if im actually working on everything else. haha
  2. I blog at richtabor.com Ive been writing a lot lately about gutenberg topics
  3. Gutenberg is not being developed to surpass the competition. Not the primary goal. Gutenberg aims to provide a content editing experience for the next 5-10 years. So to understand where themes are headed. We need to look at where they stand today.
  4. X, Avada — all trying to solve isues that WP could not solve, But they are all doing it differently Some themes have page building built in 5. If youre not super techinal, you may not have staging servers or local development environments. 6. All these points lead to a disjointed WP XP. So that’s where WP themes are today.
  5. Some of you may be thinking…
  6. That will never ever ever happen…
  7. But it will
  8. For example, contact form 7, Back to our CF7 example,
  9. There’s no need for admin pages or shortcodes. It’s all there.
  10. If you think about it, widgets are “blocks” of content already.
  11. Im building a site for a school system. So now that we understand where shortcodes and widgets are headed. Let’s look at tempates.
  12. Adjusting templates within the editor in the sky Another cool thing is that folks can build out their templates with blocks.
  13. It makes it so almost anyone can go in and do it.
  14. More facts about templates Portfolio blocks and plugin example. How to stop clients from breaking it You can also lock templates — esp good for clients (all and insert options).
  15. Block templates are still a WIP
  16. There’s a lot more potential than just templating out content the way that themes currently do it. Matias Ventura, the technical lead for the WordPress Gutenberg project mentioned the following on GitHub:
  17. Let’s think about this for a moment. Block templates will likely push beyond the content “box”, becoming whole-page editors. Headers, footers, what we know as “widget areas” — all of it could be set as templates. Footer block may have nested columns.
  18. Again, this is from the technical lead of the WordPress Gutenberg project. That’s a big deal So after all this talk about page editing...
  19. Say goodbye to custom theme-specific widgets. And to limiting page templates.
  20. The goal is to get the theme out of the way, and work with Gutenberg to empower users. To get rid of the hurdles. The future of WP themes holds well for themes to include blocks
  21. I foresee a future of WordPress themes that tie in companion block plugins which empower users to properly flesh out their ideas. So what are companion block plugins?
  22. A lot of themes are going to build companion blocks. If they’re done right, they can be used outside of the theme as well.
  23. Blocks should really apply objective styles — whereas subjective design choices should be left to the theme.
  24. A lot of chatter has been going on surrounding custom blocks and whether or not they should be included in WordPress themes — or built as separate block plugins. So, should custom blocks be built into themes?
  25. Nope. For the exact reasons that shortcodes are generally not supposed to be built into themes. Once you switch a theme, you loose everything. Now blocks are a bit different… (next slide)
  26. The last bit I’ll talk about is styling gutenberg. When you first fire Gutenberg, it’s subjectively styled.
  27. Heres an example of styling the editor -- and what not to do.