SlideShare ist ein Scribd-Unternehmen logo
1 von 51
WordPress Full site Editing
Jeff McNear
https://plasterdog.com
https://webprosmeetup.org
jeff@plasterdog.com
847/849-7060
Full site editing is a paradigm shift in approach
• Every region is block driven
• Template parts are a cross between widget
regions & reusable blocks
• Custom patterns & Reusable blocks make
things more modular
• Most things are now editable – changes are
kept in the database
… remember WordPress has made a firm commitment to backwards
compatibility
• There is no rush to convert legacy sites
• Not all sites will be compatible with FSE
• Legacy themes will remain a better
alterative for some use cases
• Many Gutenberg advantages are
available without using FSE
… everything in Gutenberg is evolving … FSE is no exception…
FSE has been part of core since ver 6.0
• Technically still in beta
• Eliminates customizer, widgets, menus & theme
file editor
• Menus are now a block
• Widgets are now template parts
• Customization is done in the editor
• Only available to those using a FSE theme
What defines FSE compared to the way it has always been …
Legacy Theme
• Header, footer & widgets placed via PHP
• Post fields are displayed via code in PHP templates
• Responsive controls in style.css
• Can revert to classic widget view via a plugin
• Gutenberg is active in the content region
• Customization via customizer
• Menus have a separate module
FSE Theme
• All parts of the site are block controlled
• Common post fields are broken down into individual blocks
• Breakpoints are dictated by “container” blocks
• Widgets & Menus are now just blocks
• Editor allows for some style adjustment for site & individual blocks
• Generating a custom theme has been greatly facilitated
• theme.json file will define many styles & functions
• templates & parts sub-folders
FSE brings many interesting
possibilities …
To access any of this you need to start with a Full Site Editing theme:
The site editor experience is roughly the same…
LEGACY THEME FSE THEME
The media library is still the same …
LEGACY THEME FSE THEME
… as are Users, Plugins, Tools & Settings…
What is different is that FSE encourages the use of the interface for
layout & design…
• Allows direct editing of the header,
footer & other “includes” regions
• Allows creation of new templates and
template parts
• Includes style controls beyond what
is found in any customizer
• Tools are available to any admin user
giving any admin these abilities means….
• Quick template modification
• Ease of assignment of alternative
headers, footers and sidebar regions
• Extended interface style control
• Automatic attachment of reusable
blocks (no need for ACF “options”
field groups)
• Greater layout and styling permissions
for the site “admin” level user
Access the editor via a sub item of Appearance…
• The widget item no longer exists
• The menu item no longer exists
• The customizer item no longer
exists
• The theme file editor item no
longer exists
Initial view is the home page template – it is better to start
with the “directory”
Select a template to edit…
or a template part…
and start manipulating blocks…
The naming convention for templates is the same as it has always
been …
• index
• 404
• search
• archive
• category
• page
• single
… in templates you will use the “theme” group of blocks quite a bit
templates do not need to have template parts –
but it is cleaner to use them
There are three “types” of template parts
• General (think widgets & sidebars)
• Header
• Footer
• Multiple variants of each type are possible
– even encouraged
• Creating a new part is a matter of selecting
which type, naming the part and then
configuring it
… template parts are block based
When a template is selected the parts will be shown in list view
• The parts can be moved and
eliminated
• If there are other template parts of
the selected type, then you can
replace one for another
• While you can edit a template part
while in template view, a better
practice is to modify the part by
selecting it directly
... just like in content, blocks can be moved, added & styled
The interface is trying to accomplish
alot, and I find it not always reliable …
… for adding, moving or replacing
template parts I recommend using the
code view
<!-- wp:template-part {
"slug":"sample-area",
"theme":"deseranno22",
"tagName":"general"} /-->
<= template part slug name
<= theme name
<= template part “type”
The syntax for a template part is straight forward
Currently there is not a way to lock a template, or template part –
however you can lock individual blocks
… any user with admin
rights will be able to
unlock the blocks
When a template (or part) has been modified in the editor a
blue dot will show in the file icon
You can revert back to the original theme file by selecting the
“clear customizations” option shown when the three dots are
clicked
How is this possible?
• The edits to the templates & parts are
not written to the theme files – they
are saved in the database
• The saved changes override the
theme templates
• If you create a new file template that
doesn’t exist in the theme, then there
is nothing to “clear”
… there is even an option to download a copy of a modified
theme (including the changes made in the interface)
But to truly make this theme
“yours” you would need to open
up the files and do some re-
naming…
The “Create Block Theme” plugin by the WordPress core team
takes this a quantum leap forward
https://wordpress.org/plugins/create-block-theme/
It’s now pretty easy to:
• Start with a FSE theme you like
• Modify it to suit your use case
• Export that modified theme as a
custom theme
While you could use any FSE theme as your jumping off point…
https://fullsiteediting.com/block-theme-generator/
In many ways creating a custom FSE theme is easier than the
legacy system
• Allowing editing in the interface allows you to see modifications
instantly
• You can build supplemental templates and template parts on the fly
• Many styling options can be set in the editor’s “style” panel
• Code copied from code view of block configurations can be placed
directly into template files
• Easy export of modified theme
The specifics of FSE theme structure is a big subject – here are
three very good resources:
• https://fullsiteediting.com/
A comprehensive guide on Full
site Editing including very specific
information on theme
composition
• https://wordpress.tv/?s=nick%20diego
Nick Diego is a WPEngine engineer and
FSE core contributor – any of his
wordpress.tv presentations are well
worth watching
• https://developer.wordpress.org/block-editor/how-to-guides/themes/
the WordPress bible on block editor theming
… that being said, here is a quick overview
LEGACY THEME
• All template files are written in PHP
• Header, footer & widget regions are defined in ”includes”
• Functionality is in functions.php
• Styles are in style.css
• Direct customization of theme files is heavily discouraged
FSE THEME
• Templates & template parts are HTML files
• PHP files are minimal
• The header & footer are template parts comprised of blocks
• The theme.json file is new and important!
• Direct modification is encouraged
… now the structure has changed
“Traditional” files can be very minimal
index.php <= required, but can be virtually empty
functions.php <= required, but can have very limited code
style.css <= required, but can be virtually empty
The theme.json file:
• This file in many ways takes over the
duties of the functions.php and
style.css files
• Defines layout, styles, functionality
• But you will still need a functions.php
and style.css file for some things…
it is best to start with the
theme.json file ….
but sometimes for finer control
you need to resort to CSS over-
rides & functions inserted via the
functions.php file
In full site editing it is perfectly acceptable to:
Use the site editor to arrange your blocks
Change to code view
Copy the generated code
Paste that code into theme files
Save the files in the right place
… and any template, template part or
pattern are yours
Most templates are expressed in HTML taken directly from the block
markup:
Templates are in a folder named “templates”:
Template Parts are in the “parts” sub-
folder:
Patterns can be saved in the “patterns”
sub-folder:
Some good work around plugins:
• Block Visibility — Conditional Visibility Control for the Block Editor
https://wordpress.org/plugins/block-visibility/
allows conditional visibility of blocks based on several parameters
author: Nick Diego
• Layout Grid Block
https://wordpress.org/plugins/layout-grid/
improvement of columns block with 2 breakpoints
author: automatic
• Create Block Theme
https://wordpress.org/plugins/create-block-theme/
extends the theme export function
author: wordpress.org
• The Icon Block
https://wordpress.org/plugins/icon-block/
Icon block with an extendible SVG library
author: Nick Diego
Some areas where FSE falls short of “legacy” methods:
• While the columns block and the menu block can trigger responsive behavior by a breakpoint
there is only one set at 600px
• FSE layouts rely heavily on the columns block making the use of advanced CSS methods like
flex-box and CSS grid for responsive position control close to impossible
• The query block does not easily accommodate custom fields
• Non-default templates cannot be assigned based on condition (think category term specific
templates)
• The menu block is inferior to the legacy menu module
• Selective style assignments based on templates is not possible via the editor (but the body
style is still there)
• Drag and drop results are not always reliable
Bottom Line: FSE is terrific for most use cases – but not for all
… but things continue to evolve
Questions?

Weitere ähnliche Inhalte

Ähnlich wie full-site-editing-theme-presentation.pptx

Responsive themeworkshop wcneo2016
Responsive themeworkshop wcneo2016Responsive themeworkshop wcneo2016
Responsive themeworkshop wcneo2016David Brattoli
 
Wordpress theme development
Wordpress theme developmentWordpress theme development
Wordpress theme developmentNaeem Junejo
 
Gutenberg (WidgiLabs Training Sessions)
Gutenberg  (WidgiLabs Training Sessions)Gutenberg  (WidgiLabs Training Sessions)
Gutenberg (WidgiLabs Training Sessions)Nuno Morgadinho
 
ITB_2023_Extend_your_contentbox_apps_with_custom_modules_Javier_Quintero.pdf
ITB_2023_Extend_your_contentbox_apps_with_custom_modules_Javier_Quintero.pdfITB_2023_Extend_your_contentbox_apps_with_custom_modules_Javier_Quintero.pdf
ITB_2023_Extend_your_contentbox_apps_with_custom_modules_Javier_Quintero.pdfOrtus Solutions, Corp
 
Keeping Your Themes and Plugins Organized.
Keeping Your Themes and Plugins Organized.Keeping Your Themes and Plugins Organized.
Keeping Your Themes and Plugins Organized.Jacob Martella
 
A11y Conference Talk: Building an Accessible WordPress Theme
A11y Conference Talk: Building an Accessible WordPress ThemeA11y Conference Talk: Building an Accessible WordPress Theme
A11y Conference Talk: Building an Accessible WordPress ThemeTomAuger
 
Between a Block & a Hard Place
Between a Block & a Hard PlaceBetween a Block & a Hard Place
Between a Block & a Hard PlaceWP Engine
 
What Developers Need Designers to Know about WordPress
What Developers Need Designers to Know about WordPressWhat Developers Need Designers to Know about WordPress
What Developers Need Designers to Know about WordPressEast Bay WordPress Meetup
 
MCC Web Design Workshop
MCC Web Design WorkshopMCC Web Design Workshop
MCC Web Design WorkshopFaye Tandog
 
Magento mega menu extension
Magento mega menu extensionMagento mega menu extension
Magento mega menu extensionBun Danny
 
From WordPress With Love
From WordPress With LoveFrom WordPress With Love
From WordPress With LoveUp2 Technology
 
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
 
Drupal architectures for flexible content - Drupalcon Barcelona
Drupal architectures for flexible content - Drupalcon BarcelonaDrupal architectures for flexible content - Drupalcon Barcelona
Drupal architectures for flexible content - Drupalcon Barcelonahernanibf
 
Designing with Gutenberg - Las Lajas WordPress Meetup 2020
Designing with Gutenberg - Las Lajas WordPress Meetup 2020Designing with Gutenberg - Las Lajas WordPress Meetup 2020
Designing with Gutenberg - Las Lajas WordPress Meetup 2020Shanta Nathwani
 
Share point 2013 Building Websites
Share point 2013 Building WebsitesShare point 2013 Building Websites
Share point 2013 Building WebsitesSuhas R Satish
 
Creating Landing Pages and Layouts for Drupal 8 - DrupalCon Baltimore
Creating Landing Pages and Layouts for Drupal 8 - DrupalCon BaltimoreCreating Landing Pages and Layouts for Drupal 8 - DrupalCon Baltimore
Creating Landing Pages and Layouts for Drupal 8 - DrupalCon BaltimoreSuzanne Dergacheva
 
WordPress - fixing sites with problems
WordPress - fixing sites with problemsWordPress - fixing sites with problems
WordPress - fixing sites with problemsVictoria Pickering
 

Ähnlich wie full-site-editing-theme-presentation.pptx (20)

Responsive themeworkshop wcneo2016
Responsive themeworkshop wcneo2016Responsive themeworkshop wcneo2016
Responsive themeworkshop wcneo2016
 
Wordpress theme development
Wordpress theme developmentWordpress theme development
Wordpress theme development
 
Gutenberg (WidgiLabs Training Sessions)
Gutenberg  (WidgiLabs Training Sessions)Gutenberg  (WidgiLabs Training Sessions)
Gutenberg (WidgiLabs Training Sessions)
 
ITB_2023_Extend_your_contentbox_apps_with_custom_modules_Javier_Quintero.pdf
ITB_2023_Extend_your_contentbox_apps_with_custom_modules_Javier_Quintero.pdfITB_2023_Extend_your_contentbox_apps_with_custom_modules_Javier_Quintero.pdf
ITB_2023_Extend_your_contentbox_apps_with_custom_modules_Javier_Quintero.pdf
 
Keeping Your Themes and Plugins Organized.
Keeping Your Themes and Plugins Organized.Keeping Your Themes and Plugins Organized.
Keeping Your Themes and Plugins Organized.
 
A11y Conference Talk: Building an Accessible WordPress Theme
A11y Conference Talk: Building an Accessible WordPress ThemeA11y Conference Talk: Building an Accessible WordPress Theme
A11y Conference Talk: Building an Accessible WordPress Theme
 
Between a Block & a Hard Place
Between a Block & a Hard PlaceBetween a Block & a Hard Place
Between a Block & a Hard Place
 
Joomla Templates101
Joomla Templates101Joomla Templates101
Joomla Templates101
 
What Developers Need Designers to Know about WordPress
What Developers Need Designers to Know about WordPressWhat Developers Need Designers to Know about WordPress
What Developers Need Designers to Know about WordPress
 
MCC Web Design Workshop
MCC Web Design WorkshopMCC Web Design Workshop
MCC Web Design Workshop
 
WordPress Complete Tutorial
WordPress Complete TutorialWordPress Complete Tutorial
WordPress Complete Tutorial
 
Magento mega menu extension
Magento mega menu extensionMagento mega menu extension
Magento mega menu extension
 
From WordPress With Love
From WordPress With LoveFrom WordPress With Love
From WordPress With Love
 
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
 
Drupal architectures for flexible content - Drupalcon Barcelona
Drupal architectures for flexible content - Drupalcon BarcelonaDrupal architectures for flexible content - Drupalcon Barcelona
Drupal architectures for flexible content - Drupalcon Barcelona
 
Designing with Gutenberg - Las Lajas WordPress Meetup 2020
Designing with Gutenberg - Las Lajas WordPress Meetup 2020Designing with Gutenberg - Las Lajas WordPress Meetup 2020
Designing with Gutenberg - Las Lajas WordPress Meetup 2020
 
72d5drupal
72d5drupal72d5drupal
72d5drupal
 
Share point 2013 Building Websites
Share point 2013 Building WebsitesShare point 2013 Building Websites
Share point 2013 Building Websites
 
Creating Landing Pages and Layouts for Drupal 8 - DrupalCon Baltimore
Creating Landing Pages and Layouts for Drupal 8 - DrupalCon BaltimoreCreating Landing Pages and Layouts for Drupal 8 - DrupalCon Baltimore
Creating Landing Pages and Layouts for Drupal 8 - DrupalCon Baltimore
 
WordPress - fixing sites with problems
WordPress - fixing sites with problemsWordPress - fixing sites with problems
WordPress - fixing sites with problems
 

Kürzlich hochgeladen

Delhi Call Girls Rohini 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Rohini 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls Rohini 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Rohini 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Callshivangimorya083
 
Low Rate Young Call Girls in Sector 63 Mamura Noida ✔️☆9289244007✔️☆ Female E...
Low Rate Young Call Girls in Sector 63 Mamura Noida ✔️☆9289244007✔️☆ Female E...Low Rate Young Call Girls in Sector 63 Mamura Noida ✔️☆9289244007✔️☆ Female E...
Low Rate Young Call Girls in Sector 63 Mamura Noida ✔️☆9289244007✔️☆ Female E...SofiyaSharma5
 
Call Girls In Sukhdev Vihar Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Sukhdev Vihar Delhi 💯Call Us 🔝8264348440🔝Call Girls In Sukhdev Vihar Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Sukhdev Vihar Delhi 💯Call Us 🔝8264348440🔝soniya singh
 
VIP Model Call Girls Hadapsar ( Pune ) Call ON 9905417584 Starting High Prof...
VIP Model Call Girls Hadapsar ( Pune ) Call ON 9905417584 Starting  High Prof...VIP Model Call Girls Hadapsar ( Pune ) Call ON 9905417584 Starting  High Prof...
VIP Model Call Girls Hadapsar ( Pune ) Call ON 9905417584 Starting High Prof...singhpriety023
 
Moving Beyond Twitter/X and Facebook - Social Media for local news providers
Moving Beyond Twitter/X and Facebook - Social Media for local news providersMoving Beyond Twitter/X and Facebook - Social Media for local news providers
Moving Beyond Twitter/X and Facebook - Social Media for local news providersDamian Radcliffe
 
DDoS In Oceania and the Pacific, presented by Dave Phelan at NZNOG 2024
DDoS In Oceania and the Pacific, presented by Dave Phelan at NZNOG 2024DDoS In Oceania and the Pacific, presented by Dave Phelan at NZNOG 2024
DDoS In Oceania and the Pacific, presented by Dave Phelan at NZNOG 2024APNIC
 
Call Girls Dubai Prolapsed O525547819 Call Girls In Dubai Princes$
Call Girls Dubai Prolapsed O525547819 Call Girls In Dubai Princes$Call Girls Dubai Prolapsed O525547819 Call Girls In Dubai Princes$
Call Girls Dubai Prolapsed O525547819 Call Girls In Dubai Princes$kojalkojal131
 
Hot Service (+9316020077 ) Goa Call Girls Real Photos and Genuine Service
Hot Service (+9316020077 ) Goa  Call Girls Real Photos and Genuine ServiceHot Service (+9316020077 ) Goa  Call Girls Real Photos and Genuine Service
Hot Service (+9316020077 ) Goa Call Girls Real Photos and Genuine Servicesexy call girls service in goa
 
₹5.5k {Cash Payment}New Friends Colony Call Girls In [Delhi NIHARIKA] 🔝|97111...
₹5.5k {Cash Payment}New Friends Colony Call Girls In [Delhi NIHARIKA] 🔝|97111...₹5.5k {Cash Payment}New Friends Colony Call Girls In [Delhi NIHARIKA] 🔝|97111...
₹5.5k {Cash Payment}New Friends Colony Call Girls In [Delhi NIHARIKA] 🔝|97111...Diya Sharma
 
Call Girls Service Chandigarh Lucky ❤️ 7710465962 Independent Call Girls In C...
Call Girls Service Chandigarh Lucky ❤️ 7710465962 Independent Call Girls In C...Call Girls Service Chandigarh Lucky ❤️ 7710465962 Independent Call Girls In C...
Call Girls Service Chandigarh Lucky ❤️ 7710465962 Independent Call Girls In C...Sheetaleventcompany
 
Hot Call Girls |Delhi |Hauz Khas ☎ 9711199171 Book Your One night Stand
Hot Call Girls |Delhi |Hauz Khas ☎ 9711199171 Book Your One night StandHot Call Girls |Delhi |Hauz Khas ☎ 9711199171 Book Your One night Stand
Hot Call Girls |Delhi |Hauz Khas ☎ 9711199171 Book Your One night Standkumarajju5765
 
CALL ON ➥8923113531 🔝Call Girls Lucknow Lucknow best sexual service Online
CALL ON ➥8923113531 🔝Call Girls Lucknow Lucknow best sexual service OnlineCALL ON ➥8923113531 🔝Call Girls Lucknow Lucknow best sexual service Online
CALL ON ➥8923113531 🔝Call Girls Lucknow Lucknow best sexual service Onlineanilsa9823
 
All Time Service Available Call Girls Mg Road 👌 ⏭️ 6378878445
All Time Service Available Call Girls Mg Road 👌 ⏭️ 6378878445All Time Service Available Call Girls Mg Road 👌 ⏭️ 6378878445
All Time Service Available Call Girls Mg Road 👌 ⏭️ 6378878445ruhi
 
AWS Community DAY Albertini-Ellan Cloud Security (1).pptx
AWS Community DAY Albertini-Ellan Cloud Security (1).pptxAWS Community DAY Albertini-Ellan Cloud Security (1).pptx
AWS Community DAY Albertini-Ellan Cloud Security (1).pptxellan12
 
Enjoy Night⚡Call Girls Dlf City Phase 3 Gurgaon >༒8448380779 Escort Service
Enjoy Night⚡Call Girls Dlf City Phase 3 Gurgaon >༒8448380779 Escort ServiceEnjoy Night⚡Call Girls Dlf City Phase 3 Gurgaon >༒8448380779 Escort Service
Enjoy Night⚡Call Girls Dlf City Phase 3 Gurgaon >༒8448380779 Escort ServiceDelhi Call girls
 
(+971568250507 ))# Young Call Girls in Ajman By Pakistani Call Girls in ...
(+971568250507  ))#  Young Call Girls  in Ajman  By Pakistani Call Girls  in ...(+971568250507  ))#  Young Call Girls  in Ajman  By Pakistani Call Girls  in ...
(+971568250507 ))# Young Call Girls in Ajman By Pakistani Call Girls in ...Escorts Call Girls
 
VIP 7001035870 Find & Meet Hyderabad Call Girls LB Nagar high-profile Call Girl
VIP 7001035870 Find & Meet Hyderabad Call Girls LB Nagar high-profile Call GirlVIP 7001035870 Find & Meet Hyderabad Call Girls LB Nagar high-profile Call Girl
VIP 7001035870 Find & Meet Hyderabad Call Girls LB Nagar high-profile Call Girladitipandeya
 
Call Now ☎ 8264348440 !! Call Girls in Shahpur Jat Escort Service Delhi N.C.R.
Call Now ☎ 8264348440 !! Call Girls in Shahpur Jat Escort Service Delhi N.C.R.Call Now ☎ 8264348440 !! Call Girls in Shahpur Jat Escort Service Delhi N.C.R.
Call Now ☎ 8264348440 !! Call Girls in Shahpur Jat Escort Service Delhi N.C.R.soniya singh
 

Kürzlich hochgeladen (20)

Delhi Call Girls Rohini 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Rohini 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls Rohini 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Rohini 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
 
Low Rate Young Call Girls in Sector 63 Mamura Noida ✔️☆9289244007✔️☆ Female E...
Low Rate Young Call Girls in Sector 63 Mamura Noida ✔️☆9289244007✔️☆ Female E...Low Rate Young Call Girls in Sector 63 Mamura Noida ✔️☆9289244007✔️☆ Female E...
Low Rate Young Call Girls in Sector 63 Mamura Noida ✔️☆9289244007✔️☆ Female E...
 
Call Girls In Sukhdev Vihar Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Sukhdev Vihar Delhi 💯Call Us 🔝8264348440🔝Call Girls In Sukhdev Vihar Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Sukhdev Vihar Delhi 💯Call Us 🔝8264348440🔝
 
VIP Model Call Girls Hadapsar ( Pune ) Call ON 9905417584 Starting High Prof...
VIP Model Call Girls Hadapsar ( Pune ) Call ON 9905417584 Starting  High Prof...VIP Model Call Girls Hadapsar ( Pune ) Call ON 9905417584 Starting  High Prof...
VIP Model Call Girls Hadapsar ( Pune ) Call ON 9905417584 Starting High Prof...
 
Moving Beyond Twitter/X and Facebook - Social Media for local news providers
Moving Beyond Twitter/X and Facebook - Social Media for local news providersMoving Beyond Twitter/X and Facebook - Social Media for local news providers
Moving Beyond Twitter/X and Facebook - Social Media for local news providers
 
DDoS In Oceania and the Pacific, presented by Dave Phelan at NZNOG 2024
DDoS In Oceania and the Pacific, presented by Dave Phelan at NZNOG 2024DDoS In Oceania and the Pacific, presented by Dave Phelan at NZNOG 2024
DDoS In Oceania and the Pacific, presented by Dave Phelan at NZNOG 2024
 
Call Girls Dubai Prolapsed O525547819 Call Girls In Dubai Princes$
Call Girls Dubai Prolapsed O525547819 Call Girls In Dubai Princes$Call Girls Dubai Prolapsed O525547819 Call Girls In Dubai Princes$
Call Girls Dubai Prolapsed O525547819 Call Girls In Dubai Princes$
 
Hot Service (+9316020077 ) Goa Call Girls Real Photos and Genuine Service
Hot Service (+9316020077 ) Goa  Call Girls Real Photos and Genuine ServiceHot Service (+9316020077 ) Goa  Call Girls Real Photos and Genuine Service
Hot Service (+9316020077 ) Goa Call Girls Real Photos and Genuine Service
 
₹5.5k {Cash Payment}New Friends Colony Call Girls In [Delhi NIHARIKA] 🔝|97111...
₹5.5k {Cash Payment}New Friends Colony Call Girls In [Delhi NIHARIKA] 🔝|97111...₹5.5k {Cash Payment}New Friends Colony Call Girls In [Delhi NIHARIKA] 🔝|97111...
₹5.5k {Cash Payment}New Friends Colony Call Girls In [Delhi NIHARIKA] 🔝|97111...
 
Call Girls Service Chandigarh Lucky ❤️ 7710465962 Independent Call Girls In C...
Call Girls Service Chandigarh Lucky ❤️ 7710465962 Independent Call Girls In C...Call Girls Service Chandigarh Lucky ❤️ 7710465962 Independent Call Girls In C...
Call Girls Service Chandigarh Lucky ❤️ 7710465962 Independent Call Girls In C...
 
Hot Call Girls |Delhi |Hauz Khas ☎ 9711199171 Book Your One night Stand
Hot Call Girls |Delhi |Hauz Khas ☎ 9711199171 Book Your One night StandHot Call Girls |Delhi |Hauz Khas ☎ 9711199171 Book Your One night Stand
Hot Call Girls |Delhi |Hauz Khas ☎ 9711199171 Book Your One night Stand
 
CALL ON ➥8923113531 🔝Call Girls Lucknow Lucknow best sexual service Online
CALL ON ➥8923113531 🔝Call Girls Lucknow Lucknow best sexual service OnlineCALL ON ➥8923113531 🔝Call Girls Lucknow Lucknow best sexual service Online
CALL ON ➥8923113531 🔝Call Girls Lucknow Lucknow best sexual service Online
 
(INDIRA) Call Girl Pune Call Now 8250077686 Pune Escorts 24x7
(INDIRA) Call Girl Pune Call Now 8250077686 Pune Escorts 24x7(INDIRA) Call Girl Pune Call Now 8250077686 Pune Escorts 24x7
(INDIRA) Call Girl Pune Call Now 8250077686 Pune Escorts 24x7
 
All Time Service Available Call Girls Mg Road 👌 ⏭️ 6378878445
All Time Service Available Call Girls Mg Road 👌 ⏭️ 6378878445All Time Service Available Call Girls Mg Road 👌 ⏭️ 6378878445
All Time Service Available Call Girls Mg Road 👌 ⏭️ 6378878445
 
AWS Community DAY Albertini-Ellan Cloud Security (1).pptx
AWS Community DAY Albertini-Ellan Cloud Security (1).pptxAWS Community DAY Albertini-Ellan Cloud Security (1).pptx
AWS Community DAY Albertini-Ellan Cloud Security (1).pptx
 
Enjoy Night⚡Call Girls Dlf City Phase 3 Gurgaon >༒8448380779 Escort Service
Enjoy Night⚡Call Girls Dlf City Phase 3 Gurgaon >༒8448380779 Escort ServiceEnjoy Night⚡Call Girls Dlf City Phase 3 Gurgaon >༒8448380779 Escort Service
Enjoy Night⚡Call Girls Dlf City Phase 3 Gurgaon >༒8448380779 Escort Service
 
(+971568250507 ))# Young Call Girls in Ajman By Pakistani Call Girls in ...
(+971568250507  ))#  Young Call Girls  in Ajman  By Pakistani Call Girls  in ...(+971568250507  ))#  Young Call Girls  in Ajman  By Pakistani Call Girls  in ...
(+971568250507 ))# Young Call Girls in Ajman By Pakistani Call Girls in ...
 
VVVIP Call Girls In Connaught Place ➡️ Delhi ➡️ 9999965857 🚀 No Advance 24HRS...
VVVIP Call Girls In Connaught Place ➡️ Delhi ➡️ 9999965857 🚀 No Advance 24HRS...VVVIP Call Girls In Connaught Place ➡️ Delhi ➡️ 9999965857 🚀 No Advance 24HRS...
VVVIP Call Girls In Connaught Place ➡️ Delhi ➡️ 9999965857 🚀 No Advance 24HRS...
 
VIP 7001035870 Find & Meet Hyderabad Call Girls LB Nagar high-profile Call Girl
VIP 7001035870 Find & Meet Hyderabad Call Girls LB Nagar high-profile Call GirlVIP 7001035870 Find & Meet Hyderabad Call Girls LB Nagar high-profile Call Girl
VIP 7001035870 Find & Meet Hyderabad Call Girls LB Nagar high-profile Call Girl
 
Call Now ☎ 8264348440 !! Call Girls in Shahpur Jat Escort Service Delhi N.C.R.
Call Now ☎ 8264348440 !! Call Girls in Shahpur Jat Escort Service Delhi N.C.R.Call Now ☎ 8264348440 !! Call Girls in Shahpur Jat Escort Service Delhi N.C.R.
Call Now ☎ 8264348440 !! Call Girls in Shahpur Jat Escort Service Delhi N.C.R.
 

full-site-editing-theme-presentation.pptx

  • 1. WordPress Full site Editing Jeff McNear https://plasterdog.com https://webprosmeetup.org jeff@plasterdog.com 847/849-7060
  • 2. Full site editing is a paradigm shift in approach • Every region is block driven • Template parts are a cross between widget regions & reusable blocks • Custom patterns & Reusable blocks make things more modular • Most things are now editable – changes are kept in the database
  • 3. … remember WordPress has made a firm commitment to backwards compatibility • There is no rush to convert legacy sites • Not all sites will be compatible with FSE • Legacy themes will remain a better alterative for some use cases • Many Gutenberg advantages are available without using FSE
  • 4. … everything in Gutenberg is evolving … FSE is no exception…
  • 5. FSE has been part of core since ver 6.0 • Technically still in beta • Eliminates customizer, widgets, menus & theme file editor • Menus are now a block • Widgets are now template parts • Customization is done in the editor • Only available to those using a FSE theme
  • 6. What defines FSE compared to the way it has always been … Legacy Theme • Header, footer & widgets placed via PHP • Post fields are displayed via code in PHP templates • Responsive controls in style.css • Can revert to classic widget view via a plugin • Gutenberg is active in the content region • Customization via customizer • Menus have a separate module
  • 7. FSE Theme • All parts of the site are block controlled • Common post fields are broken down into individual blocks • Breakpoints are dictated by “container” blocks • Widgets & Menus are now just blocks • Editor allows for some style adjustment for site & individual blocks • Generating a custom theme has been greatly facilitated • theme.json file will define many styles & functions • templates & parts sub-folders
  • 8. FSE brings many interesting possibilities …
  • 9. To access any of this you need to start with a Full Site Editing theme:
  • 10. The site editor experience is roughly the same… LEGACY THEME FSE THEME
  • 11. The media library is still the same … LEGACY THEME FSE THEME
  • 12. … as are Users, Plugins, Tools & Settings…
  • 13. What is different is that FSE encourages the use of the interface for layout & design… • Allows direct editing of the header, footer & other “includes” regions • Allows creation of new templates and template parts • Includes style controls beyond what is found in any customizer • Tools are available to any admin user
  • 14. giving any admin these abilities means…. • Quick template modification • Ease of assignment of alternative headers, footers and sidebar regions • Extended interface style control • Automatic attachment of reusable blocks (no need for ACF “options” field groups) • Greater layout and styling permissions for the site “admin” level user
  • 15. Access the editor via a sub item of Appearance… • The widget item no longer exists • The menu item no longer exists • The customizer item no longer exists • The theme file editor item no longer exists
  • 16. Initial view is the home page template – it is better to start with the “directory”
  • 17. Select a template to edit…
  • 18. or a template part…
  • 20. The naming convention for templates is the same as it has always been … • index • 404 • search • archive • category • page • single
  • 21. … in templates you will use the “theme” group of blocks quite a bit
  • 22. templates do not need to have template parts – but it is cleaner to use them
  • 23. There are three “types” of template parts • General (think widgets & sidebars) • Header • Footer • Multiple variants of each type are possible – even encouraged • Creating a new part is a matter of selecting which type, naming the part and then configuring it
  • 24. … template parts are block based
  • 25. When a template is selected the parts will be shown in list view • The parts can be moved and eliminated • If there are other template parts of the selected type, then you can replace one for another • While you can edit a template part while in template view, a better practice is to modify the part by selecting it directly
  • 26. ... just like in content, blocks can be moved, added & styled
  • 27. The interface is trying to accomplish alot, and I find it not always reliable … … for adding, moving or replacing template parts I recommend using the code view
  • 28. <!-- wp:template-part { "slug":"sample-area", "theme":"deseranno22", "tagName":"general"} /--> <= template part slug name <= theme name <= template part “type” The syntax for a template part is straight forward
  • 29. Currently there is not a way to lock a template, or template part – however you can lock individual blocks
  • 30. … any user with admin rights will be able to unlock the blocks
  • 31. When a template (or part) has been modified in the editor a blue dot will show in the file icon You can revert back to the original theme file by selecting the “clear customizations” option shown when the three dots are clicked
  • 32. How is this possible? • The edits to the templates & parts are not written to the theme files – they are saved in the database • The saved changes override the theme templates • If you create a new file template that doesn’t exist in the theme, then there is nothing to “clear”
  • 33. … there is even an option to download a copy of a modified theme (including the changes made in the interface) But to truly make this theme “yours” you would need to open up the files and do some re- naming…
  • 34. The “Create Block Theme” plugin by the WordPress core team takes this a quantum leap forward https://wordpress.org/plugins/create-block-theme/
  • 35. It’s now pretty easy to: • Start with a FSE theme you like • Modify it to suit your use case • Export that modified theme as a custom theme
  • 36. While you could use any FSE theme as your jumping off point… https://fullsiteediting.com/block-theme-generator/
  • 37. In many ways creating a custom FSE theme is easier than the legacy system • Allowing editing in the interface allows you to see modifications instantly • You can build supplemental templates and template parts on the fly • Many styling options can be set in the editor’s “style” panel • Code copied from code view of block configurations can be placed directly into template files • Easy export of modified theme
  • 38. The specifics of FSE theme structure is a big subject – here are three very good resources: • https://fullsiteediting.com/ A comprehensive guide on Full site Editing including very specific information on theme composition • https://wordpress.tv/?s=nick%20diego Nick Diego is a WPEngine engineer and FSE core contributor – any of his wordpress.tv presentations are well worth watching • https://developer.wordpress.org/block-editor/how-to-guides/themes/ the WordPress bible on block editor theming
  • 39. … that being said, here is a quick overview LEGACY THEME • All template files are written in PHP • Header, footer & widget regions are defined in ”includes” • Functionality is in functions.php • Styles are in style.css • Direct customization of theme files is heavily discouraged
  • 40. FSE THEME • Templates & template parts are HTML files • PHP files are minimal • The header & footer are template parts comprised of blocks • The theme.json file is new and important! • Direct modification is encouraged … now the structure has changed
  • 41. “Traditional” files can be very minimal index.php <= required, but can be virtually empty functions.php <= required, but can have very limited code style.css <= required, but can be virtually empty
  • 42. The theme.json file: • This file in many ways takes over the duties of the functions.php and style.css files • Defines layout, styles, functionality • But you will still need a functions.php and style.css file for some things…
  • 43. it is best to start with the theme.json file …. but sometimes for finer control you need to resort to CSS over- rides & functions inserted via the functions.php file
  • 44. In full site editing it is perfectly acceptable to: Use the site editor to arrange your blocks Change to code view Copy the generated code Paste that code into theme files Save the files in the right place … and any template, template part or pattern are yours
  • 45. Most templates are expressed in HTML taken directly from the block markup: Templates are in a folder named “templates”:
  • 46. Template Parts are in the “parts” sub- folder: Patterns can be saved in the “patterns” sub-folder:
  • 47. Some good work around plugins: • Block Visibility — Conditional Visibility Control for the Block Editor https://wordpress.org/plugins/block-visibility/ allows conditional visibility of blocks based on several parameters author: Nick Diego • Layout Grid Block https://wordpress.org/plugins/layout-grid/ improvement of columns block with 2 breakpoints author: automatic • Create Block Theme https://wordpress.org/plugins/create-block-theme/ extends the theme export function author: wordpress.org • The Icon Block https://wordpress.org/plugins/icon-block/ Icon block with an extendible SVG library author: Nick Diego
  • 48. Some areas where FSE falls short of “legacy” methods: • While the columns block and the menu block can trigger responsive behavior by a breakpoint there is only one set at 600px • FSE layouts rely heavily on the columns block making the use of advanced CSS methods like flex-box and CSS grid for responsive position control close to impossible • The query block does not easily accommodate custom fields • Non-default templates cannot be assigned based on condition (think category term specific templates) • The menu block is inferior to the legacy menu module • Selective style assignments based on templates is not possible via the editor (but the body style is still there) • Drag and drop results are not always reliable
  • 49. Bottom Line: FSE is terrific for most use cases – but not for all
  • 50. … but things continue to evolve