FreeWidget

Sticky Section widget documentation

Sticky Section pins its content inside its parent, so set up the layout first: a row with the sticky block in one column and the long content in the other.

Overview

The Xtra Sticky Section is a free Elementor widget that pins a block of content to the screen while the rest of the page scrolls past it. Write your content in the editor and the block follows the reader, such as a table of contents, an order summary or a buy box.

You decide how far from the top of the screen it should stop with Top Offset, which devices it should stick on with Sticky On (desktop, tablet and mobile) and where it sits in the stacking order with Z-Index. When the block is stuck it receives its own look: a stuck background, padding, border and shadow.

The block stays within its parent, so it travels alongside a long column and stops when that column ends. For that to work the widget needs a taller neighbour and a parent that is as tall as the column, which the steps below explain.

You will find the widget in the Elementor panel under the Xtra widgets, or search for “Sticky Section”. It is part of the free Xtra Addons for Elementor plugin — see the Sticky Section widget page for live demos.

Quick start

  1. Create a row container with two columns, put the long content in one and set the row's Layout → Align Items to Stretch so both columns are the same height.
  2. Drag the Sticky Section widget into the shorter column.
  3. Select the widget and open Advanced → Layout. Set Size to Custom with Flex Grow 1 and Flex Shrink 0, so the widget fills the height of its column. Sticking needs that space to move in.
  4. Under Content → Content, write the content that should stay in view.
  5. Under Content → Sticky Settings, choose the devices in Sticky On, set the Top Offset (px) and the Z-Index, and leave Add Shadow when Stuck on if you want the stuck styles.
  6. Under Style → Style, set the Normal Background and Padding, then the Stuck Background, Stuck Padding, Stuck Border and Stuck Shadow.
  7. Preview the page and scroll. The block follows you, picks up the stuck look and stops when its column ends.

Options reference

All 13 options of the Sticky Section widget, as they appear in the Elementor panel. Many options are responsive and can be set separately for desktop, tablet and mobile.

Content tab 6 options

Content

OptionTypeValues and notes
Content Rich text

Sticky Settings

OptionTypeValues and notes
Sticky On Multi-select DesktopTabletMobile
Top Offset (px)responsive Number
Transition Duration (ms) Number
Z-Index Number
Add Shadow when Stuck On / off

Style tab 7 options

Style

OptionTypeValues and notes
Backgroundresponsive Background Classic color or image, gradient, video and slideshow backgrounds with position, size and effects.
Paddingresponsive Dimensions
Box Shadow Box shadow
Stuck Paddingresponsive Dimensions
Border Type Select DefaultNoneSolidDoubleDottedDashedGroove
Border Widthresponsive Dimensions
Border Color Color

Tips

  • Position: sticky only travels inside its parent. If nothing sticks, check that the column is as tall as the long content and that the widget has the Size setting from step 3.
  • A parent with overflow: hidden stops sticky positioning from working. Check any custom CSS on the surrounding containers.
  • Use the same value for Padding and Stuck Padding if you do not want the block to change size when it sticks.
  • The stuck styles are applied while Add Shadow when Stuck is on. If you turn it off, the block still sticks but it no longer gets the stuck look.
  • Set Top Offset to at least the height of any fixed header so the pinned block does not slide underneath it.

Frequently asked questions

Is the Xtra Sticky Section widget free?

Yes. Sticky Section is included in the free Xtra Addons for Elementor plugin. No Elementor Pro is required.

Why is my sticky element not sticking in Elementor?

A sticky block can only move inside its parent. Put the widget in a column of a row whose Align Items is Stretch and set the widget's Advanced → Layout → Size to Custom with Flex Grow 1 and Flex Shrink 0. Also check that no parent has overflow hidden.

How do I make a sticky sidebar in Elementor?

Make a row with two columns, add the long content to one and the Sticky Section widget to the other, then follow the layout steps above. The sidebar follows the reader and stops where the long column ends.

Can I make the section sticky on desktop only?

Yes. Under Content → Sticky Settings, set Sticky On to Desktop only. Tablet and mobile then show the normal, non-sticky layout. The device is checked when the page loads.

Can I change the background and shadow when it is stuck?

Yes. Use Stuck Background, Stuck Padding, Stuck Border and Stuck Shadow under Style → Style. They apply only while the block is pinned.

What does Top Offset do?

It is the distance in pixels between the top of the screen and the pinned block. Use it to keep the block clear of a fixed header.

See the Sticky Section widget in action

Live demos, features and use cases are on the widget page.

Open widget page