Customizing Hero Blocks with Blocksy Pro Content Blocks: Full Tutorial

exist WordPress The default article header image and information display area (Hero Section) tends to lack personality during the site building process.Blocksy Pro The Content Blocks feature is provided to allow you to create content via the Gutenberg The editor customizes and replaces these default modules to implement dynamically loaded custom post layouts.

This post will show you hands-on how to build a fully personalized Hero block and apply it to all your single post templates, making your website content both beautiful and modular.

Image[1]-Blocksy Tutorial: Using Content Blocks to Customize Hero Blocks and Replace Article Templates

I. Creating content blocks (Content Block)

First, log in to the backend and go in order:
Blocksy > Content Blocks > Add New > HookIf you want to create a new content block, name it "Custom Hero Section" or whatever you like.

Image [2]-Blocksy Tutorial: Using Content Blocks to Customize Hero Blocks and Replace Article Templates

go into Gutenberg After the editor, start building the page structure.

Image [3]-Blocksy Tutorial: Using Content Blocks to Customize Hero Block and Replace Article Templates

Building a Custom Hero Structure

1. Add a Group block and set the background

  • Insert a Group blocks
Image [4]-Blocksy Tutorial: Using Content Blocks to Customize Hero Blocks and Replace Post Templates
  • Set the width to Full Width
Image [5]-Blocksy Tutorial: Using Content Blocks to Customize Hero Blocks and Replace Post Templates
  • Select a background color (e.g. dark gray)
Image [6]-Blocksy Tutorial: Using Content Blocks to Customize Hero Blocks and Replace Article Templates
  • Customize the class (for example:custom-hero-section)
Image [7]-Blocksy Tutorial: Using Content Blocks to Customize Hero Blocks and Replace Article Templates

2. Creating a two-column layout

  • stick Columns block(two-column structure)
Image [8]-Blocksy Tutorial: Using Content Blocks to Customize Hero Block and Replace Article Templates

left column::

  • stick Post Featured Image Block: this module will dynamically load the header image of the current article in the foreground.
Image [9]-Blocksy Tutorial: Using Content Blocks to Customize Hero Blocks and Replace Article Templates

right-hand column::

  • Insert the following dynamic modules to form the information area:
    • Post Author
    • Post Date
    • Post Title
    • Spacer adjusts vision
    • Optional paragraph content or explanatory text

You can also save this section as reusable modulefor subsequent reuse.

Image [10]-Blocksy Tutorial: Using Content Blocks to Customize Hero Block and Replace Article Templates
Image [11]-Blocksy Tutorial: Using Content Blocks to Customize Hero Block and Replace Article Templates

Third, add breadcrumb navigation (Breadcrumb)

Breadcrumb navigation can be added to enhance the user navigation experience:

  • stick Shortcode block
Image [12]-Blocksy Tutorial: Using Content Blocks to Customize Hero Block and Replace Article Templates
  • Paste the following code:

[bloxy_breadcrumbs]

Blocksy The current location navigation is automatically generated based on the article path.

Fourth, real-time preview of dynamic content

To preview dynamic data (e.g., titles, images, etc.) in the editor, open:
Blocksy Settings > Dynamic Content PreviewSelect any article as the preview source to see how the content loads in real time.

Image [13]-Blocksy Tutorial: Using Content Blocks to Customize Hero Block and Replace Article Templates

V. Setting the hook position and display conditions

After completing the design, on the right side Blocksy Settings panel:

  • Location (Hook Location): Selection Before Content
  • Display Conditions: Select "All Single Posts"
Image [14]-Blocksy Tutorial: Using Content Blocks to Customize Hero Blocks and Replace Article Templates

Save and publish the content block.

VI. Effectiveness verification

Visit any article and you will see that the custom Hero block has been successfully applied and automatically loads the content information of the current article. No need to write code, neat, beautiful and responsive.

Image [15]-Blocksy Tutorial: Using Content Blocks to Customize Hero Blocks and Replace Article Templates

summarize

leverage Blocksy Pro The content block feature that you can:

  • Freedom to create reusable article template modules
  • Enabling structured presentation of dynamic content
  • pass (a bill or inspection etc) Gutenberg The editor does everything, without relying on an external page builder!

Customizing Hero Sections is just one application scenario for Content Blocks. You can also use them to create headers, footers, customized 404 Pageetc., giving the whole site more brand unity and flexibility.

Recent Updates


Contact Us
Can't read the tutorial? Contact us for a free answer! Free help for personal, small business sites!
Customer Service
Customer Service
Tel: 020-2206-9892
QQ咨询:1025174874
(iii) E-mail: info@361sale.com
Working hours: Monday to Friday, 9:30-18:30, holidays off
© Reprint statement
This article was written by: thieves will be rats and mice courage
THE END
If you like it, support it.
kudos1232 share (joys, benefits, privileges etc) with others
commentaries sofa-buying

Please log in to post a comment

    No comments