|

WordCamp US 2019 – Just Enough React for WordPress – Shannon Smith

New Block Editor

Discover the Possibilities

  • Block templates
  • Blocks instead of custom fields, shortcodes, etc

How Does the New Block Editor Work?

  • Uses React, JavaScript/JSX
  • Blocks are like plugins
  • There is a Core Layer & Editorial Layer
  • React abstraction is built-in

Cool Stuff

  • Blocks can be reusable
  • Backend Workflow-only blocks
  • Block level locking – you can remove blocks that are not needed.

React

  • Uses JSON literals
  • It’s in the HTML but doesn’t negatively affect the HTML

Templates

  • You can create block templates
  • Can be assigned to existing post types
  • You can have nested templates

Compatibility

Shortcodes

  • Will continue to work as before but contained within a block

Custom Post Types

Metaboxes

  • Can be converted to blocks
  • Can be used in the block editor

Themes

  • You can control things like color(theme color palette and styles in the block editor to ensure that users follow branding/design styles.

Block Styles

  • Blocks can be style to match the site theme.

Block Creation

  • A lot of flexibility
  • You can scaffold out them with the WP-CLI

How to Win at Go

You need to break some things before you can finally have something that is working.

Tips & Tricks

  • Reusable Blocks – You can turn any block into a reusable block, update once and reflected everywhere
  • Block Directory – this is starting and you can get involved in providing direction.
    • You’ll be able to add block apart from themes/plugins so you can design around just the blocks you need

Q&A

  • Blocks are really a backend piece, the front end doesn’t use the React blocks.
  • Can React be used in the frontend? Today it’s only a backend content editing feature.

Similar Posts

  • /

    WPGR: Learn about the Developer Tools in your browser

    Firefox Developer Tools – Topher Inspector – look at HTML/CSS behind a web page Responsive Display Mode Console – look for errors (security/resource loading issues) Different results depending on when you open – loading vs loaded Debugger – for JavaScript Style Editor – for changing CSS Performance – monitoring page load performance Network – Storage – Local browser items, page cache, cookies, etc. Chrome Developer Tools – Brian Shortcuts – keyboard commands to open dev tools (CTRL-OPT-I[Mac OS X]/CTRL-SHIFT-I[ChromeOS]) Docking – SHIFT-CMD-D(Mac OS X) / CTRL-SHIFT-D(Chrome OS) Elements (inspector) Styles – Filter allows for viewing specific CSS states (i.e. :hover) Add specific element styles Color Swatch – has a color picker, can save swatches Computed Styles View a visual representation of spacing See the CSS that…
  • /

    WordCamp GR 2017 – Development With Material Design – Matt Christensen

    Matt Christensen – https://www.mattchristensen.net/ History Announced 2014 2015 Most Google apps use it Intended for Android Focused on Native Mobile, web was an afterthought What Is It? – https://material.io/ A metaphor – think paper Uniting Style – look the same everywhere Design as a physical medium Paper and Ink Seams & Edges Motion has meaning Web Features – https://getmdl.io/components/ Cards – base component (could be used as a means to layout “table” data) Drawers Snackbar – nice feedback component, can hide automatically Tables Out of the box there is styling but not responsive jQuery Alternative – https://datatables.net/ Frameworks MDL (Material Design) Materialize – http://materializecss.com/ (stay away from Materialize WP, not much development) MDLWP – http://mdlwp.com/ (most features in commercial) Bootstrap Material Design – http://fezvrasta.github.io/bootstrap-material-design/ How Do You Design? What are you…
  • / /

    Tuesday Interval Training Run And Virtual 5K

    A big shout out to Automattic for promoting the WWWP5K virtual run and matching donations to your favorite charity. #wwwp5k #HWI #Run4Water #WhyIRun #RiverBankRun Automattic matching donations: http://timn.me/wwwp5k2020 Give the gift of clean water: https://timn.me/2020HWI Also on: MastodonMastodon XX InstagramInstagram
  • /

    WordPress Grand Rapids – September 2018: Show And Tell

    Nicole – BoldGrid Post & Page Builder Free & Premium Versions Not Compatible With Editing on Mobile Not Yet Compatible With Gutenberg Premium Designer Blocks & Sliders BoldGrid Central Free cloud-based WordPress instances for testing things out. Crio WordPress Theme Available on ThemeForest Topher – BigCommerce Provides a plugin that pushes your BigCommerce store content to WordPress. All-one SaaS platform. Uses an iframe for checkout so all transactions are at BigCommerce for PCI compliance Can connect BigCommerce to Amazon as a channel. WordPress is just like a channel in BigCommerce and you can push specific products or product categories to different WordPress sites. Request WordPress Beta Access and get free Dev BigCommerce access for life. General Tips Plugins Imsanity
  • /

    WordCamp US 2019 – Technical SEO Checklist: How to Optimize a WordPress Site for Search Engine Crawlers – Pam Aungst

    Why SEO is Important For search engines Why Technical SEO is Super Important Search Engines: Crawl / Index / Rank If technical SEO isn’t working search engines can’t crawl/index/rank. Visitors wont’ find your site. The Ultimate SEO Checklist Basic/Traditional Items Domain & CMS Run by a well designed platform Meta Robots Search Engine Visibility checkbox Cross-Check Plugin Robots.txt Exclude Irrelevant Content – Yoast SEO Implement Cross-Check’s Search Engine Visibility Monitoring XML Sitemap Dynamic XML Sitemap from Yoast SEO Submit XML index to Google Search Console and check for errors Search Console monitors for crawling errors Should be dynamically generated and updated Design Do not use “one page” designs, they don’t work well for SEO Breadcrumbs Schema markup can be added for search crawlers to follow…

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

To respond on your own website, enter the URL of your response which should contain a link to this post's permalink URL. Your response will then appear (possibly after moderation) on this page. Want to update or remove your response? Update or delete your post and re-enter your post's URL again. (Find out more about Webmentions.)