Use the Post Tags block to display the posts’ tags. This block is primarily nested inside a query loop block and helps to customize the appearance of the query loop.
To add a Post Tags block, click the Block Inserter icon when editing the page template. Search for the Post Tags block. Click on it to add the block to your page template.
Video showing how to add Post Tags block
You can also type /post-tags and hit enter in a new paragraph block to add the Post Tags block quickly.
To view the block toolbar, click on the block and the toolbar will be displayed.
Every block comes with unique toolbar icons. These block-specific controls allow you to manipulate the block right in the editor.
The Post Tags block shows five buttons in the block toolbar:
- Transform to
- Drag icon
- Move arrows
- Change text alignment
- More options
Click on the “Transform” button to convert the Post Tags block into a “Group” block or “Columns” block.
To drag and drop the block to a new location on the page template, click and hold the rectangle of dots, then drag to the new location. The blue separator line indicates where the block will be placed. Release the left mouse button when you find the new location to place the block.
The up and down arrow icons can be used to move the block up and down on the page.
Change text alignment:
Click the “Change alignment” button in the Block toolbar to display the alignment drop-down. You can align the block text to the left, make it center-aligned or align it to the right.
The More option on a block toolbar gives you more features to customize the block. These controls give you the option to copy, duplicate, and edit your block as HTML.
In addition to the block toolbar, every block has specific options in the editor sidebar.
If you do not see the sidebar, click the ‘cog’ icon next to the Save button.
You can customize the text color, background color, and link color for the Post Tags block. The color options available will vary based on the theme. Pick a color from the suggestions, or add a custom color using the color picker or by adding a color code.
On this tab, you can adjust the Font size, Appearance, Line height, Letter case, and Letter-spacing. These settings allow you to change a block’s font size, appearance, line height, letter casing, and spacing.
The “Advanced” tab lets you enter character(s) that can be used to separate the category terms. The default setting is a comma.
You can also add CSS class(es) to your block. This will allow you to write custom CSS and styles to the block.