utilization GeneratePress When building a website with GenerateBlocks, many people want thefooterThis is a great way to seamlessly connect the header to the first block at the top of the page, creating a unified and space-saving visual effect. This article describes how to utilize GeneratePress Premium's "Merge" feature to merge the header with the first block at the top of the page to create a unified and space-saving visual effect.Hero SectionMerge and solve spacing and color matching issues to achieve a beautiful and functional homepage design.
![图片[1]-利用GeneratePress Premium实现页眉与页面英雄区块无缝合并,打造专业首页设计](https://www.361sale.com/wp-content/uploads/2025/05/20250515143830413-image.png)
What is the merging of the header with the page hero block?
By default, there is significant spacing between the header and the first content block of the page, resulting in a visual split at the top. The merge feature allows the header to overlay above the page hero block for tightly connected content and a smoother visual flow.
Step 1: Check the inner margins of the page hero block
- In the Page Editor, click the Page Hero container.
- Open the Spacing settings to see the top and bottom inner margins, e.g. 150px by default.
![图片[2]-利用GeneratePress Premium实现页眉与页面英雄区块无缝合并,打造专业首页设计](https://www.361sale.com/wp-content/uploads/2025/05/20250515143931493-image.png)
- Record values for subsequent adjustments.
Step 2: Create a new header element and enable merge
- go intoWordPressBackstage menu Appearance > Elements.
- Click "Add New" and select "Header Element".
![图片[3]-利用GeneratePress Premium实现页眉与页面英雄区块无缝合并,打造专业首页设计](https://www.361sale.com/wp-content/uploads/2025/05/20250515144017347-image.png)
- Name the element, e.g. "Merge Header".
- Open the Merge option.
![图片[4]-利用GeneratePress Premium实现页眉与页面英雄区块无缝合并,打造专业首页设计](https://www.361sale.com/wp-content/uploads/2025/05/20250515144154977-image.png)
- Set display rules, such as Post > All Post Publish.
![图片[5]-利用GeneratePress Premium实现页眉与页面英雄区块无缝合并,打造专业首页设计](https://www.361sale.com/wp-content/uploads/2025/05/20250515144224327-image.png)
- Save the release.
Header and page hero block merged, content moved up.
![图片[6]-利用GeneratePress Premium实现页眉与页面英雄区块无缝合并,打造专业首页设计](https://www.361sale.com/wp-content/uploads/2025/05/20250515150451575-image.png)
Step 3: Adjust the top inner margin fix spacing of the page hero block
After the merge, the top inner margins of the page are uneven and the top inner margin of the page hero is covered by the header.
![图片[7]-利用GeneratePress Premium实现页眉与页面英雄区块无缝合并,打造专业首页设计](https://www.361sale.com/wp-content/uploads/2025/05/20250515151245738-image.png)
Solution:
- Calculates the height of the header, e.g. 60px.
- In the top inner margin of the page hero container, add the original value (e.g., 150px) to the header height to make it 210px.
![图片[8]-利用GeneratePress Premium实现页眉与页面英雄区块无缝合并,打造专业首页设计](https://www.361sale.com/wp-content/uploads/2025/05/20250515151353877-image.png)
- Save to refresh the page.
Ensure that the top and bottom inner margins of the page hero are balanced and visually comfortable.
![图片[9]-利用GeneratePress Premium实现页眉与页面英雄区块无缝合并,打造专业首页设计](https://www.361sale.com/wp-content/uploads/2025/05/20250515151424322-image.png)
Step 4: Set navigation colors to enhance the merge effect
Adjusting the navigation colors helps to seamlessly merge the visuals.
- Set the navigation background to be transparent.
- Modify site title color andnavigatorText color is white to ensure clarity.
![图片[10]-利用GeneratePress Premium实现页眉与页面英雄区块无缝合并,打造专业首页设计](https://www.361sale.com/wp-content/uploads/2025/05/20250515151701744-image.png)
- Adjust the navigation text hover color and the current page color, set to white or high contrast color.
![图片[11]-利用GeneratePress Premium实现页眉与页面英雄区块无缝合并,打造专业首页设计](https://www.361sale.com/wp-content/uploads/2025/05/20250515151757802-image.png)
- Save to refresh the view.
![图片[12]-利用GeneratePress Premium实现页眉与页面英雄区块无缝合并,打造专业首页设计](https://www.361sale.com/wp-content/uploads/2025/05/20250515151828516-image.png)
Step 5: Sticky Navigation Bar Color Inheritance Customizer
Sticky NavigationColumns are displayed fixedly while scrolling, and the colors inherit the theme customizer settings.
- Go to Customizer.
- Adjust the title and text color in the navigation or header color settings.
- Preview sticky navigation bar color effects to ensure coordination.
Step 6: Upload a different color logo to adapt the merge and sticky status.
Upload two logo Colors to suit different states:
- Customizer uploads dark version of Logo for non-merged or sticky navigation states.
![图片[13]-利用GeneratePress Premium实现页眉与页面英雄区块无缝合并,打造专业首页设计](https://www.361sale.com/wp-content/uploads/2025/05/20250515152355104-image.png)
- Upload a white version of the logo for use when merging headers.
![图片[14]-利用GeneratePress Premium实现页眉与页面英雄区块无缝合并,打造专业首页设计](https://www.361sale.com/wp-content/uploads/2025/05/20250515152514811-image.png)
- clotureSite TitleDisplay, Logo only.
![图片[15]-利用GeneratePress Premium实现页眉与页面英雄区块无缝合并,打造专业首页设计](https://www.361sale.com/wp-content/uploads/2025/05/20250515152635593-image.png)
- Setting a toggle logo in the header element ensures that different states are displayed with the corresponding version.
Refresh the page to see the white logo displayed in the merge header and the dark logo displayed in the sticky navigation.
![图片[16]-利用GeneratePress Premium实现页眉与页面英雄区块无缝合并,打造专业首页设计](https://www.361sale.com/wp-content/uploads/2025/05/20250515152823173-image.png)
![图片[17]-利用GeneratePress Premium实现页眉与页面英雄区块无缝合并,打造专业首页设计](https://www.361sale.com/wp-content/uploads/2025/05/20250515152855817-image.png)
summarize
The above steps enable header and page hero block merging in GeneratePress theme, eliminating the extra spacing at the top and improving the professional feel and visual unity of the overall page design. Adjust the inner margins, colors and logo Details to create a more perfect page.
Recent Updates
Link to this article:https://www.361sale.com/en/54589/The article is copyrighted and must be reproduced with attribution.



















![表情[wozuimei]-光子波动网 | WordPress教程、Elementor教程与故障修复](https://www.361sale.com/wp-content/themes/zibll/img/smilies/wozuimei.gif)
![表情[baoquan]-光子波动网 | WordPress教程、Elementor教程与故障修复](https://www.361sale.com/wp-content/themes/zibll/img/smilies/baoquan.gif)

No comments