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

Site blocks

When you use the Site Editor, there are specific blocks that are really useful when creating templates and template parts and thinking about sites. Let’s look at just a few and, later on, we can go into more of them.

Spacer block

A key block when creating sites is the spacer block. This handy little block allows you to literally create just that – space between things. Let’s look at how that might appear in a template. See Figure 9.9.

Figure 9.9 – The spacer block showing design tools

Figure 9.9 – The spacer block showing design tools

In the preceding screenshot, you can see the spacer block has a handy dot to move it and some simple interface tools in case you wish to change the size. Depending on the theme, you can set it to different values.

It’s a good idea to be cautious about how many spacer blocks you add to a template as too many can become unmanageable at scale, but a few can really help with the layout and enable you to get just what you...

lock icon The rest of the chapter is locked
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