exist WordPress In websites, in addition to the title and body text, the judicious use of subheadings can enhance the structure of the article and improve the visual hierarchy. If you are using GeneratePress theme, then just with the Block Element and custom fields feature, you can dynamically display the subtitle below the title of each article, without writing any code. In this article, we will teach you to realize this effect.
![Image [1]-Complete guide to displaying subheadings with Block Element in GeneratePress](https://www.361sale.com/wp-content/uploads/2025/05/20250517111024965-image.png)
I. Enabling customized field functionality
By default, theWordPress 's Gutenberg editor hides custom fields. We need to turn them on manually first:
- Go to any article edit page.
- Click on the "three dots" icon (settings menu) in the upper right corner.
- Go to [Preferences] > [Panel].
- Enable the [Custom Fields] option.
![Image [2]-Complete guide to displaying subheadings with Block Element in GeneratePress](https://www.361sale.com/wp-content/uploads/2025/05/20250517111300934-image.png)
- The page will be refreshed once and the "Custom Fields" panel will appear at the bottom.
![Image [3]-Complete guide to displaying subheadings with Block Element in GeneratePress](https://www.361sale.com/wp-content/uploads/2025/05/20250517111452756-image.png)
II. Adding a subheading field to an article
Custom Fields area at the bottom of the post:
- The name of the new field is
subtitle - Fill in the "Value" with the content of the subtitle you want to display.
- Click on "Update" in the upper right corner of the article to save it
![Image [4]-Complete guide to displaying subheadings with Block Element in GeneratePress](https://www.361sale.com/wp-content/uploads/2025/05/20250517111532628-image.png)
Creating a Block Element
Next, create a new Block Element to display the subtitle:
- Go to "Appearance > Elements" in the background
- Click "Add New Element" and select "Block" type.
![Image [5]-Complete guide to displaying subheadings with Block Element in GeneratePress](https://www.361sale.com/wp-content/uploads/2025/05/20250517111614523-image.png)
- Name the element "Subtitle".
- Type SelectionHook"
![Image [6]-Complete guide to displaying subheadings with Block Element in GeneratePress](https://www.361sale.com/wp-content/uploads/2025/05/20250517111638985-image.png)
IV. Adding and setting up subheading blocks
In the Block Element editor:
- Add a "Headline Block" (requires installation) GenerateBlocks (Plug-ins)
- set to
H2tags (since the default post title is H1) - Click "Dynamic Data"buttons
- Select "Post Meta" for text type
- The Meta field name is filled in as
subtitle(must match the field name set in the article)
![Image [7]-Complete guide to displaying subheadings with Block Element in GeneratePress](https://www.361sale.com/wp-content/uploads/2025/05/20250517111810768-image.png)
When set up this way, the block will automatically display the current post filled in the subtitle Value.
V. Setting the Display Position and Hook
In the Block Element settings:
- The display condition is set to: Post > All Posts
- Hook name selection:
generate_after_entry_titleThis way the subtitle will appear below the headline
![Image [8]-Complete guide to displaying subheadings with Block Element in GeneratePress](https://www.361sale.com/wp-content/uploads/2025/05/20250517111931389-image.png)
VI. Adjusting priorities so that subheadings appear before meta-information
By default, the meta information for articles (e.g., publish date, author) also uses the same HookThe priority is 10.
To have the subtitle appear before the meta information:
- Set the Hook priority of the subtitle block to 5
- Click "Update" to save
![Image [9]-Complete guide to displaying subheadings with Block Element in GeneratePress](https://www.361sale.com/wp-content/uploads/2025/05/20250517112103847-image.png)
- Go to the front-end page and refresh it to see the subtitle appear in thecaptionand meta-information between
![Image [10]-Complete guide to displaying subheadings with Block Element in GeneratePress](https://www.361sale.com/wp-content/uploads/2025/05/20250517112130325-image.png)
Seven, add subheadings to other articles
Repeat for other articles named subtitle custom fields and fill in the corresponding values, the subtitle will be displayed automatically in the front-end without additional settings.
summarize
GeneratePress The Block Element system incorporates dynamic field functionality to give websites the ability to display information flexibly. With a single setup, all articles can display different subheadings, which is a practical way to enhance visual presentation by supplementing article content, providing clarification or reinforcing structure.
Recent Updates
Link to this article:https://www.361sale.com/en/54928The article is copyrighted and must be reproduced with attribution.





















![Emoji[wozuimei]-Photonflux.com | Professional WordPress repair service, worldwide, rapid response](https://www.361sale.com/wp-content/themes/zibll/img/smilies/wozuimei.gif)
![Emoticon[baoquan] - Photon Wave Network | Professional WordPress Repair Services, Worldwide Coverage, Rapid Response](https://www.361sale.com/wp-content/themes/zibll/img/smilies/baoquan.gif)

No comments