The Grid Block
Read time: 4 minutes
The Grid block in WordPress is a versatile tool for creating structured layouts of content such as text, images, and links. Hereβs how to add and customise a Grid block on your WordPress site.
Adding a Grid Block
- Navigate to the Grid Block Section:
- Start by logging into your WordPress dashboard.
- From the sidebar menu, select the appropriate post or page where you want to add the grid.
- Add a New Grid Block:
- Within the post or page editor, click on the + icon to add a new block.
- Search for “Grid” and select it from the available block types.
Customising the Grid Block
- Content Tab:
- Subheading: You can add an optional subheading that appears above the grid. This can provide context or a brief introduction to the grid content.
- Text: Enter the primary content for the grid in the provided field.
- Button: Add a call to action button with a link if needed.
- Grid Rows: Define how many rows there will be in the grid.
- Grid Columns: Define how many columns there will be in the grid.
- Grid Gap: Add a gap between grid items for better spacing.
- Grid Items: Add grid items consisting of heading, summary, image, background image, and link. Note that a grid item can have either an image or a coloured background.
- Settings Tab:
- Section ID: This option allows you to add an ID to the block, which is useful for one-page websites with smooth scrolling links.
- Container Size: Decide how the grid will display. Options are small, default, and full width.
Example Configuration
- Subheading: Grid Block Example
- Text: “Lorem ipsum dolor sit amet consectetur adipiscing elit rhoncus interdum urna inceptos hendrerit fermentum, libero scelerisque placerat augue tortor metus ullamcorper neque.”
- Button: “Learn More” with a link.
- Grid Rows: Two
- Grid Columns: Three
- Grid Gap: Medium
Grid Items:
- Heading: Event One
- Text: “Lorem ipsum dolor sit amet consectetur adipiscing elit nec curae potenti mattis libero.”
- Image: Add an image of the event.
- Background Image: Add a coloured background if desired.
- Link: Add a link to the event page.
- Heading: Event Two
- Text: “Lorem ipsum dolor sit amet consectetur adipiscing elit nec curae potenti mattis libero.”
- Image: Add an image of the event.
- Background Image: Add a coloured background if desired.
- Link: Add a link to the event page.
- Heading: Event Three
- Text: “Lorem ipsum dolor sit amet consectetur adipiscing elit nec curae potenti mattis libero.”
- Image: Add an image of the event.
- Background Image: Add a coloured background if desired.
- Link: Add a link to the event page.
With these settings, your grid block will create a visually appealing and organised layout of your content, enhancing the user experience on your site.
Top Tips
- Consistency: Maintain a consistent style for headings, images, and text across all grid items to ensure a cohesive look.
- Spacing: Use the grid gap settings to add appropriate spacing between items, making the content easier to read and navigate.
- Visual Appeal: Use high-quality images and background colours to make the grid visually engaging.
- Linking: Ensure all links are relevant and working correctly to provide a seamless user experience.
This approach helps create a structured and aesthetically pleasing layout for showcasing multiple pieces of content in a grid format.