@WordCampLanc @erikteichmann Does your editor look just like the frontend of your website?
(No one raises their hand)
@WordCampLanc @erikteichmann Does your editor look just like the frontend of your website?
(No one raises their hand)
@WordCampLanc @erikteichmann WYSIWYG (what you see if what you get)? More like WYS is? WYG (what you see, is it, what you get?)
@WordCampLanc @erikteichmann A lot of developers use a default WordPress theme to go along with the “cobbler’s children have no shoes” expression.
@WordCampLanc @erikteichmann We’re building things that are getting more and more complicated and we’re not providing enough feedback in the backend to show what the frontend is going to look like!
@WordCampLanc @erikteichmann Why put work into styling the backend?
Because every client asks “What is it [the content] actually going to look like?”
@WordCampLanc @erikteichmann Poll:
Who here would call themselves a theme editor? (about half of the room)
Who here has used the Gutenberg editor? (a lot less)
Who has developed a block? (not much)
@WordCampLanc @erikteichmann As themes have changed are styles have gotten more complex. The first default theme had ~ 600 lines of CSS. The default twentynineteen theme has over 6,000 lines of CSS.
6th talk of the day at @WordCampLanc
“Styling Blocks for the Backend” by @erikteichmann
@WordCampLanc @paulbarthmaier In my own view I think block filters are important because they enable flexibility for developers to customize blocks to meet their needs without having to redo the whole block. Actions and filters are key to making WordPress more flexible.
@WordCampLanc @paulbarthmaier “Why are block filters important for the user editor interface?”
“I dunno, I’m a developer” – @_pbrocks
@WordCampLanc @paulbarthmaier PHP Block example from @GaryPendergast gist.github.com/pento/cf38fd73ce…
@WordCampLanc @paulbarthmaier When you create a block all of the data for that block winds up in the database via an HTML comment embedded into the post_content field where the block should be rendered.
@WordCampLanc @paulbarthmaier “With the advent of the new block editor, our shared understanding of development best practices is changing. It’s like the wild wild west all over again.”
@WordCampLanc @paulbarthmaier You can’t create a block with just PHP (yet) you do need a little bit of JavaScript.
@NancyBasile14 There’s a plugin for that wordpress.org/plugins/disable-gu…
@WordCampLanc @paulbarthmaier Block Filters in the Gutenberg Handbook wordpress.org/gutenberg/handbook…
@WordCampLanc @paulbarthmaier Block filters allow you to extend or change the functionality of a Gutenberg block.
Post lunch talks from @WordCampLanc continue.
Now listening in on @paulbarthmaier’s “Block Filters: The Answer to Customizing Blocks Without Rolling Your Own”
Lunch time at #WCLANC right now. If you need a friend come find me in the weird pickle t-shirt. Can’t miss it.
Follow Ashley on Twitter at @ash__eberly
@kingkool68
WordPress developer at @CoderPad. Formerly of @nclud @spiritedmediaco, @pewresearch, @usnews. I made dummyimage.com and married @naudebynature.