Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases now! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
WordPress Styling with Blocks, Patterns, Templates, and Themes

You're reading from   WordPress Styling with Blocks, Patterns, Templates, and Themes Explore WordPress styling with step-by-step guidance, practical examples, and tips

Arrow left icon
Product type Paperback
Published in Feb 2024
Publisher Packt
ISBN-13 9781804618509
Length 270 pages
Edition 1st Edition
Languages
Concepts
Arrow right icon
Author (1):
Arrow left icon
Tammie Lister Tammie Lister
Author Profile Icon Tammie Lister
Tammie Lister
Arrow right icon
View More author details
Toc

Table of Contents (23) Chapters Close

Preface 1. Part 1: Styling and Design Tools
2. Chapter 1: Introducing Blocks FREE CHAPTER 3. Chapter 2: Block Design Tools 4. Chapter 3: Block Styles 5. Chapter 4: Blocks and Styles Wrap-Up 6. Part 2: Block Patterns
7. Chapter 5: Understanding Block Patterns 8. Chapter 6: Discovering and Creating Block Patterns 9. Chapter 7: Discovering the WordPress Pattern Directory 10. Chapter 8: Wrapping Up Patterns 11. Part 3: Template Parts and Templates
12. Chapter 9: An Introduction to Site Editing 13. Chapter 10: Discovering and Creating Template Parts 14. Chapter 11: Discovering and Creating Templates 15. Chapter 12: Templates Wrap-Up 16. Part 4: Themes
17. Chapter 13: Understanding How Themes Have Changed 18. Chapter 14: Discovering Styles 19. Chapter 15: Discovering WordPress Block Themes 20. Chapter 16: Wrapping Up Themes 21. Index 22. A Book That You May Enjoy

Key concepts

It’s useful to call out a few key concepts around the design tools as we wrap up this chapter and dig deeper into each of them.

Block first

By their nature, they are “block first.” They are attached to the blocks themselves, either exposed within the toolbar as in the case of duotone or through the side panel as in the case of other options such as margin and padding.

If you combine blocks into a group, you can apply the design tools to that block. This is a powerful way to build up applying styles. Hence, everything starts with the block, and that includes design tools and your content.

Intrinsic web design

One of the first questions you may ask while exploring more is where are the responsive controls within the design tools?

There are none within the editor today. While this doesn’t mean there won’t be at some point, they’ll have to – like all tools – be the right ones. The editor is built on intrinsic web design principles. This means that it works irrespective of screen size. The layout adapts and doesn’t add the complexity of trying to work out how to handle things across patterns or blocks. Intrinsic web design is a website design approach that focuses on creating flexible and adaptable layouts.

What does the term intrinsic web design mean though?

Well, it was coined in 2018 by Jen Simmons in her presentation titled Everything You Know About Web Design Just Changed. In simple terms, she talks about true responsiveness, flexibility, and adaptability that is true to the nature of the web. This includes using all the new features, at the time, of CSS, to create an experience that works no matter what you are viewing it on.

What does that mean for you, using the WordPress editor today?

The reality is there are enormous amounts of screen sizes now and supporting every single point, fixing content to those is not getting any easier. There will often be a time when using points where the styling looks bad as you stagger up and down in size.

Intrinsic in the editor means your content is created from the block to look good no matter what device it is viewed on, to be truly adaptable. There are also design tools that exist today, such as typography and layout tools, to help you keep to this concept without having to know anything else or set each breakpoint. This avoids missing one of the so many screen sizes and variations that exist today.

Interface not code

A rather obvious concept is adding an interface to many things for which previously you would have needed to know how to code. This means that the editor not only provides an interface but also allows us to use the same styling options for the same thing across tools. For example, let’s look at range controls. These are controls that allow you to set styling, typically with a slider between a range of options. See Figure 1.17.

Figure 1.17 – Editor side panel showing range controls on button block.

Figure 1.17 – Editor side panel showing range controls on button block.

This quote from the Block Editor Handbook explains some of the key interface concepts.

Blocks come in many different forms but also provide a consistent interface. They can be inserted, moved, reordered, copied, duplicated, transformed, deleted, dragged, and combined. Blocks can also be reused, allowing them to be shared across posts and post types and/or used multiple times in the same post. If it helps, you can think of blocks as a more graceful shortcode, with rich formatting tools for users to compose content.

https://developer.wordpress.org/block-editor/explanations/architecture/key-concepts/

The interface empowers you, as you can learn how to do something once, and then you can do it across any block that has that tool or setting in the future. For example, once you learn how to change the size of a font, move a block, or even set borders and background colors, it’s the same for all blocks going forward using the design tools in WordPress.

You have been reading a chapter from
WordPress Styling with Blocks, Patterns, Templates, and Themes
Published in: Feb 2024
Publisher: Packt
ISBN-13: 9781804618509
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime