Flatsome Theme Tutorial: How to Create Floating Frame Header with Flatsome Theme

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.

Flatsome主题教学

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.

Flatsome 主题评测:多功能 WooCommerce 主题,强大自定义与优化功能

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 主题创建浮动框架页眉

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 0, ensuring that its background becomes transparent.

图片[4]-Flatsome主题教程:如何使用 Flatsome 主题创建浮动框架页眉

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 主题创建浮动框架页眉

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 主题创建浮动框架页眉

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 主题创建浮动框架页眉

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


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.
kudos9 share (joys, benefits, privileges etc) with others
commentaries sofa-buying

Please log in to post a comment

    No comments