Using GeneratePress and GenerateBlocks to Create Page Heroes for Category/Tag Archive Pages

desirous of WordPress of a more visually appealing categorized or tagged archive page? In this article, we'll explain how you can use the GeneratePress respond in singing GenerateBlocks Plugin to customize the aesthetically pleasing archive page top banner (Page Hero) with dynamic category title, description text and optional drop shadow style.

图片[1]-用 GeneratePress 和 GenerateBlocks 打造美观的分类与标签归档页顶部横幅

I. Prerequisite preparation

Before you begin, make sure the following plugins are enabled:

  • GeneratePress Theme (GP Premium is recommended to support Page Hero functionality)
  • GenerateBlocks plugin (Pro version for shadow styles)

In addition, in the WordPress backend, "Post →" is the default setting. categorizationIn the "Add description content for some categories for subsequent dynamic call.

图片[2]-用 GeneratePress 和 GenerateBlocks 打造美观的分类与标签归档页顶部横幅

New Page Hero element

  • Go to Backstage → Appearance → Elements
  • Click on "Add New Element"
图片[3]-用 GeneratePress 和 GenerateBlocks 打造美观的分类与标签归档页顶部横幅
  • named after Category Page Hero or other identifying name
  • Element type selection Page Hero
  • Display Rule Selection All ArchivesThis works on both category and tagged archive pages.
图片[4]-用 GeneratePress 和 GenerateBlocks 打造美观的分类与标签归档页顶部横幅

Third, build Page Hero content structure

Insert a Container blockIf you want to use the default settings, just use the default settings.

Adding a container to the Headline blocks

  • The title level is set to H1
  • Alignment is set to center
  • Open it.Dynamic data (Dynamic)"Options, Content Selection Title
图片[5]-用 GeneratePress 和 GenerateBlocks 打造美观的分类与标签归档页顶部横幅
  • Customize font size and color
图片[6]-用 GeneratePress 和 GenerateBlocks 打造美观的分类与标签归档页顶部横幅
  • If GenerateBlocks Pro is installed, you can add the Text Shadow Increased visualization
图片[7]-用 GeneratePress 和 GenerateBlocks 打造美观的分类与标签归档页顶部横幅

Add Category Description

  • utilization GP Dynamic Content Block provided by GeneratePress
图片[8]-用 GeneratePress 和 GenerateBlocks 打造美观的分类与标签归档页顶部横幅
  • Type Selection Term Description(used to display a description of the current category or tag)
图片[9]-用 GeneratePress 和 GenerateBlocks 打造美观的分类与标签归档页顶部横幅

IV. Hide the default title

  • Save and publish the Page Hero element you just created
  • Return to Element Settings → "Element" tab on the left side
  • Disable page elements" in the Title (Content Title) Hide
图片[10]-用 GeneratePress 和 GenerateBlocks 打造美观的分类与标签归档页顶部横幅
  • Click to update

After refreshing the category page, the native header will be hidden and only the custom Page Hero block will remain.

V. Effectiveness

At this point, the front-end page'sCategory Archives PageThe following effects have been realized:

  • Display the current category name at the top of the page (dynamically fetched)
  • Below is a description of the category (automatically invoked)
  • Full-screen centered layout with customizable fonts, colors, shadows, and other styles
  • The original default title has been hidden
图片[11]-用 GeneratePress 和 GenerateBlocks 打造美观的分类与标签归档页顶部横幅

concluding remarks

pass (a bill or inspection etc) GeneratePress With GenerateBlocks, it's easy to create visually striking top banners for category or tag archive pages, improving the overall quality of your website design.

Recent Updates


Contact Us
Can't read the tutorial? Contact us for a free answer! Free help for personal, small business sites!
客服微信
Customer Service
Tel: 020-2206-9892
QQ咨询:1025174874
(iii) E-mail: [email protected]
Working hours: Monday to Friday, 9:30-18:30, holidays off
© Reprint statement
本文作者:托尼屎大颗
THE END
If you like it, support it.
kudos1223 share (joys, benefits, privileges etc) with others
commentaries sofa-buying

Please log in to post a comment

    No comments