Kadence Tutorial: Creating Sticky & Transparent Headers

In modern website design, stickyfooterand transparent headers are often used to enhance visual effects and operational fluency. The use of Kadence in the themeAdvanced Headerfunction, you can flexibly implement these two styles, or use them in combination to achieve rich page design.

图片[1]-Kadence 教程:实现粘性与透明页眉的完整指南

Add Advanced Header Module

First, add the Header (Adv) block to the page. You will be prompted to create a new header, or choose from an existing template.Kadence A variety of preset templates are provided, including:

  • Single or multi-line desktop header
  • Header layout optimized for mobile
图片[2]-Kadence 教程:实现粘性与透明页眉的完整指南

After selecting a template, you can use the visual editor to add content modules and freely arrange the sections.

图片[3]-Kadence 教程:实现粘性与透明页眉的完整指南
Example of a basic desktop layout:
图片[4]-Kadence 教程:实现粘性与透明页眉的完整指南
Example of a multi-row desktop layout:
图片[5]-Kadence 教程:实现粘性与透明页眉的完整指南
Tablet/Mobile Device Layout Example::

Setting a transparent header

Transparent headers are often used in designs with large images or background content at the top of the page to give the page a more hierarchical look.

图片[6]-Kadence 教程:实现粘性与透明页眉的完整指南

The setup procedure is as follows:

  • Check the Header (Adv) block
  • Go to the General option in the Settings column on the right.
  • Enable Transparent Header
图片[7]-Kadence 教程:实现粘性与透明页眉的完整指南

The Auto Spacing Under setting appears when enabled and is used to automatically add spacing at the top of the first container on the page to avoid content being obscured.

图片[8]-Kadence 教程:实现粘性与透明页眉的完整指南

Also, the following style options are added to the Header and Navigation blocks:

  • Transparent background and border settings
图片[9]-Kadence 教程:实现粘性与透明页眉的完整指南
  • Navigation menu transparent style and link style
图片[10]-Kadence 教程:实现粘性与透明页眉的完整指南

These styles can be fine-tuned according to the page's color scheme and typographic needs.

Setting up sticky headers

Sticky header stays at the top of the page as it scrolls for easy accessnavigatoror operation portal.

图片[11]-Kadence 教程:实现粘性与透明页眉的完整指南

Enable as follows:

  • Check the Header (Adv) block
  • Enable Sticky Header in General Settings
图片[12]-Kadence 教程:实现粘性与透明页眉的完整指南

The following can be configured after activation:

  • Sticky Section: select the area to be fixed (whole line, top, middle or bottom)
图片[13]-Kadence 教程:实现粘性与透明页眉的完整指南
  • Reveal On Scroll Up: show when page scrolls up, hide when page scrolls down
图片[14]-Kadence 教程:实现粘性与透明页眉的完整指南
Disappears when scrolling down: the
图片[15]-Kadence 教程:实现粘性与透明页眉的完整指南
Appears when scrolling up:
  • Shrink Middle Row: Shrink the middle row in sticky state and set the height of the shrink.
图片[16]-Kadence 教程:实现粘性与透明页眉的完整指南

Corresponding sticky style settings also appear in the Header and Navigation modules, including options for background color, border, and text color.

图片[17]-Kadence 教程:实现粘性与透明页眉的完整指南
footer(blockWill get sticky background and sticky border style block settings.
图片[18]-Kadence 教程:实现粘性与透明页眉的完整指南
navigator(blockWill get sticky style block settings.

Enable both sticky and transparent headers

To use both transparent and sticky effects, simply turn on both options in the General settings of the Header (Adv).

图片[19]-Kadence 教程:实现粘性与透明页眉的完整指南

After that, go to Style Settings and expand Sticky Background Settings to customize the background color and transparency of the sticky state.

图片[20]-Kadence 教程:实现粘性与透明页眉的完整指南

This combination is suitable for the top area of a visually demanding page, such as displaying a large image, a brand slogan or a homepage banner.

Set sticky header to transparent or translucent

You can make the header in sticky state transparent or semi-transparent style even if transparent header is not enabled.

图片[21]-Kadence 教程:实现粘性与透明页眉的完整指南
图片[22]-Kadence 教程:实现粘性与透明页眉的完整指南

Simply go to Style Settings in the Header (Adv), turn on Sticky Background Settings, and use the color picker to adjust the transparency value to the desired visual effect.

Setting up a semi-transparent transparent header

If transparency is not desiredfooterFully transparent, or you can set it to a semi-transparent style with a slight background color. Expand Transparent Background in the Style settings and use the color picker to adjust the color opacity for a softer visual representation of the header.

图片[23]-Kadence 教程:实现粘性与透明页眉的完整指南

wrap-up

Kadence Provides advanced header features that support the independent use and combination of sticky and transparent styles, adapting to a variety of page design needs. Combined with custom style control, you can create a practical and beautiful header area to improve the overall page quality.

For further customization of the style, combine the Kadence Blocks Achieve more detailed typography.


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

Please log in to post a comment

    No comments