In this tutorial, you will be shown how to use the Flatsome Themes Create a Floating frame header. This design has become very popular lately and is especially suitable for smaller websites without many navigation items. Floating headers give a modern, clean look and are perfect for business websites that want to display clean navigation on their pages.

Why use a floating frame header?
Floating frame headers provide a clean, modern design for websites, and are especially suited to business websites that require clean navigation. Unlike traditionalfloating headerUnlike, this frame layout is commonly found in mobile apps and is becoming increasingly popular in modern website design. It provides users with a more intuitive way to navigate while maintaining a minimalist visual look.

Steps to create a floating frame header
In this tutorial, this will be done by using the Flatsome theme with built-in options and some custom CSS to implement a floating frame header. Here are the detailed steps:
Step 1: Set the background color
First, to ensure that the floating header will display, we need to set a background color for the entire site. Go to Flatsome Theme OptionsSelection opening (chess jargon)and then set the Content background color. This will allow the floating header to be visible on the page.
![图片[3]-Flatsome主题教程:如何使用 Flatsome 主题创建浮动框架页眉](https://www.361sale.com/wp-content/uploads/2025/04/20250403141648619-image.png)
Step 2: Remove the main header background
By default, Flatsome themes give Home Page Set a background color. For the floating effect, we need to set its background to transparent. Go to Header SettingsThen find the Home Page, adjusting the transparency of its background color to
![图片[4]-Flatsome主题教程:如何使用 Flatsome 主题创建浮动框架页眉](https://www.361sale.com/wp-content/uploads/2025/04/20250403141840975-image.png)
Step 3: Disable Header Separators
Flatsome adds a separator below the homepage header by default, which may affect the floating effect. We need to disable this separator. Go to Header SettingsUncheck the box. delimiter Options.
![图片[5]-Flatsome主题教程:如何使用 Flatsome 主题创建浮动框架页眉](https://www.361sale.com/wp-content/uploads/2025/04/20250403142045310-image.png)
Step 4: Add Custom CSS
Next, we need to use custom CSS to further refine the appearance of the floating header. This can be done with the Flatsome Advanced Settings hit the nail on the head Custom CSS section to insert the code.
![图片[6]-Flatsome主题教程:如何使用 Flatsome 主题创建浮动框架页眉](https://www.361sale.com/wp-content/uploads/2025/04/20250403142352199-image.png)
The following custom CSS is designed for floating headers:
/* Floating Header Styling */
.floating-header {
margin-top: 60px; /* Add space above the header */
max-width: 100%; /* Ensure the header doesn't stretch too far */
border-radius: 10px; /* Round the corners */
padding: 10px 20px; /* Add padding for a cleaner look */
background-color: rgba(255, 255, 255, 0.8); /* Semi-transparent background */
backdrop-filter: blur(10px); /* Apply a subtle blur effect */
}
/* Header Adjustments for Mobile */
@media (max-width: 768px) {
.floating-header {
padding: 10px; /* Adjust padding for smaller screens */ @media (max-width: 768px) { .floating-header {
}
}
this paragraph CSS Will ensure that the floating header has clean rounded corners, proper inner margins, and a subtle blurring effect when scrolling for a more modern look.
Step 5: Adjusting Spacing and Shadows on the Page
To ensure that the floating header doesn't overlap with other content while scrolling, add a margin-topFlatsome adds a shadow effect to the header that interferes with the floating effect. Paste the following code into Flatsome Advanced Settings hit the nail on the head Custom CSS Part.
/* Remove header shadow */
header {
box-shadow: none;
}
Step 6: Testing and Adjustment
After completing the above settings, you can preview the effect of the floating frame header on your website.
![图片[7]-Flatsome主题教程:如何使用 Flatsome 主题创建浮动框架页眉](https://www.361sale.com/wp-content/uploads/2025/04/20250403143229688-4月3日.gif)
summarize
pass (a bill or inspection etc) Flatsome Themes with built-in options and custom CSS, it's easy to create a modern Floating frame headerThis style of design is ideal for small sites, especially those with little navigation. This design style is perfect for small sites, especially business sites that don't have many navigation items. For more WordPress related tutorials and information, follow thePhoton fluctuation network, has the most comprehensive WordPress tutorials and the most activeWordPress Exchange CommunityThe
Link to this article:https://www.361sale.com/en/49033/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