Skip to content

Black Friday + Cyber MondayBiggest sale of the year. Up to 50% off.

Claim The Deal
BricksFly

Bricks Sticky Section: How to Make Sticky and Pinned Sections in Bricks Builder

Make a section sticky in Bricks with CSS, fix sticky that stops working, and pin sections while content scrolls with no-code GSAP. Step by step.

14 min read
Share
BricksFly Sticky Elements settings with Pin True, Pin Start Top Top, Pin End Bottom Top and Pin Spacing False
On this page

Your sidebar should stay beside the article while the reader scrolls, but in Bricks it scrolls away, or it stuck once and stopped after you changed a parent. For a simple Bricks sticky section, set the element's position to sticky and give it a top value: it then stays in view until its parent ends. For a section that holds still while other content scrolls past and then lets go, you need pinning, which BricksFly Pro sets up without code.

Picking the right one first saves you from fighting CSS that cannot do the job. This guide covers both methods, four reasons sticky fails, a sticky header row, three layouts and mobile settings.

Quick answer

To make a section sticky in Bricks Builder, select the element, set its position to sticky and give it a top value such as 0 or 10px. Its parent must be taller than the element and must not have overflow: hidden. To hold a section still for a set scroll distance and then release it, use pinning: BricksFly Pro's Sticky Elements extension sets Pin Start, Pin End and Pin Spacing visually.

Key takeaways

  • A CSS sticky element only sticks inside its parent. When the parent's bottom edge arrives, the element scrolls away with it.
  • overflow: hidden on any parent breaks sticky. MDN describes overflow: clip as not creating a scroll container.
  • If sticky works in the builder but not on the live page, check the parent's alignment. A Bricks staff fix in 2025 was align-items: stretch on the parent.
  • Bricks' own Sticky header setting sticks the whole header template. One row of a header needs position sticky on that row, and a test.
  • Pinning in BricksFly is a Pro extension. You switch on Sticky Elements under Scroll Smoother, then enable it per element in the Content tab.
  • Pin Spacing True adds space below the pinned element equal to its height. False adds none, so the next content slides up under or over it.

Sticky vs Pinned: What is the Difference?#

A sticky element stays in view only while its parent is on screen. A pinned element is held in place between a start and an end scroll position that you choose, then released.

CSS sticky is a browser feature. MDN's page on the position property says a sticky element is treated as relatively positioned until it crosses a threshold such as top, and then stays stuck "until meeting the opposite edge of its containing block". So a sidebar column sticks for exactly as long as the row around it is taller than the sidebar. No script is involved.

Pinning comes from GSAP's ScrollTrigger plugin, which ties an effect to the scroll position. The ScrollTrigger docs describe pin as an element that is pinned while the ScrollTrigger is active. Start and end are each a pair of positions, such as "top center": the first word is a place on the trigger element, the second a place on the screen. By default ScrollTrigger also adds spacing so the content after the pin waits until the pin ends.

CSS sticky stays inside its parent, while a pinned element is held from Pin Start to Pin End and then released
Sticky ends where its parent ends. A pin ends where you set Pin End.
CSS stickyPinned (ScrollTrigger)
Where it stopsAt the end of its parentAt the Pin End position you set
Needs a tall parentYesNo: the scroll distance is set by start and end
Broken by overflow: hidden on a parentYesNo, per the BricksFly Sticky/Pin FAQ
Code or pluginOne Bricks setting or a few lines of CSSGSAP code, or BricksFly Pro without code
Use it forSticky sidebar, table of contents, one header rowImage or video held while text scrolls, stacking rows

Use CSS sticky when the element only needs to stay visible beside content in the same row. Use pinning when the section itself should stop the page for a while, or when an overflow: hidden parent cannot be removed.

Method 1: Make an Element Sticky in Bricks With CSS#

Set the element's position to sticky and give it a top offset. This works in Bricks without any add-on.

What you need: Bricks 2.4.6 (the stable release on November 19, 2026) on WordPress 7.1.5. The steps were written for these versions and have not yet been run on a test site.

Bricks Academy's element schema lists Position (CSS position) and a top control (CSS top) among the "Shared CSS controls available on all elements", so any section, container, block or div can be made sticky.

  1. Select the element you want to make sticky from the Structure panel, such as a sidebar block, rather than selecting its parent row. Make sure the parent row is taller than the selected element; otherwise, there will be no space for the sticky behavior to work.
  2. Open the element's Style tab and change its Position setting to sticky. At this stage, you may not notice any visible change in the canvas because the element still needs a sticky offset.
  3. Set a Top value to define where the element should stick. Use 0 to position it at the top edge of the viewport, or enter a value that matches your sticky header's height (for example, 100px) to prevent the element from overlapping the header. Without a top or another inset value, sticky positioning behaves like relative positioning.
  4. Save the page and open it on the front end to test the result. The element will scroll normally until it reaches the specified top offset, remain fixed there while its parent container continues scrolling, and stop sticking when the bottom of the parent container is reached.

If you prefer CSS, Bricks Academy's custom code guide says to open the element's Style tab, expand the CSS control group and use %root% for the element. This snippet makes the element sticky 100px from the top:

/* Element CSS in Bricks: Style tab > CSS. %root% is this element. */
%root% {
  position: sticky;
  top: 100px; /* the height of your sticky header, or 0 */
  align-self: flex-start; /* keep its own height inside a flex row */
}

top sets the stick point. align-self: flex-start stops a flex row from stretching the sidebar to the row's full height, which would leave it no room to move.

Sticky Not Working in Bricks? Four Things to Check#

Most broken sticky elements in Bricks come from the parent, not the element. Check these four in order.

Four reasons sticky does not work in Bricks: a parent with overflow hidden, a parent that is too short, no top value, and a section inside a container

1. A Parent Has overflow: hidden#

In a Bricks forum thread from March 27, 2023, a sticky column stopped working after an update. A Bricks team member found the cause: an overflow: hidden on the containing section, added through a global class. MDN explains why: a sticky element sticks to its nearest ancestor with a "scrolling mechanism", which overflow: hidden, scroll or auto creates.

Fix: remove overflow: hidden from every parent of the sticky element, including global classes. If you need the clipping, MDN's overflow page describes overflow: clip as "not a scroll container", so it is the value to try:

/* Parent CSS: clip the overflow without breaking sticky children. */
%root% {
  overflow: clip; /* instead of overflow: hidden */
}

2. The Parent Is Not Taller Than the Element#

A sticky element can only move inside its parent. In a thread from January 31, 2025, sticky text worked in the builder but not on the front end. A Bricks team member said "the container is not full height", and the problem was solved the next day by adding align-items: stretch to the parent container.

Fix: make sure the row that holds the sticky element is taller than it, and that the column holding it stretches to the row's height.

3. No Top Value, or a Top Value Under the Header#

Without a top value, sticky does nothing. With top: 0 and a sticky site header, the element sticks behind the header. Set top to at least the header's height.

4. A Section Inside a Container#

In a thread from September 1, 2023, a sticky section placed inside a container stopped working. A Bricks team member replied that "A section in a container does not sound like the usual setup". The thread records no fix. Since the container is now the section's parent, the section can only stick within the container's height. Move the section back to the top level, or make the container the sticky element.

If none of these fixes it, the next section on pinning avoids the parent limits entirely.

Make Only One Row of a Header Sticky#

Bricks' Template Settings offer Sticky header, which "keeps a top header fixed while scrolling", Sticky on scroll and Slide up after. Open the header template, click the Settings icon and go to Template Settings > Header. These settings act on the whole header.

For one row, a forum answer from January 19, 2023 suggests setting that section's position to sticky with a top value like 0 or 10px. A reply on March 31, 2024 says this did not work for one user, and the thread records no fix. A likely reason, from MDN's description: the row's containing block is the header itself, so the row can stick only until the header's bottom edge passes, which is almost at once.

Until that test is done, the safer route for one sticky row is to pin it with BricksFly (Method 2) or to make the whole header sticky with the template setting.

Method 2: Pin a Section While Content Scrolls, Without Code#

BricksFly Pro's Sticky Elements extension pins any Bricks element or container with GSAP ScrollTrigger, set in the Bricks panel. It is one of BricksFly's 15 GSAP extensions and is in the Pro plan only: the free plugin on WordPress.org does not include it.

What you need: the Bricks theme, the free BricksFly Elements and Templates for Bricks plugin (version 1.0.19) and BricksFly Pro with an active license. Steps are from the BricksFly Sticky/Pin docs (updated July 26, 2026) and the BricksFly Sticky/Pin extension page.

Step 1: Switch On Sticky Elements#

Load the extension on your site. In the WordPress dashboard, click BricksFly and open the Extension tab. Under Scroll Smoother, toggle on Sticky Elements.

The extension's scripts load only when it is switched on, so leave it off on sites that do not use it.

Sticky extension on

Step 2: Name the Wrapper and Enable the Extension#

  • In Bricks, select the container that wraps your section in the structure panel. Open the Style tab, expand CSS and type sticky-section in the CSS classes field. The pin uses this class to know where to stop.
sticky-section typed in the CSS classes field of a Bricks container
  • Select the element you want to pin inside that container. Open the Content tab, expand Sticky/Pin Area Control and set Enable Sticky/Pin to Yes. The pin settings appear below it.
Sticky/Pin Area Control in the Bricks Content tab with Enable Sticky/Pin set to Yes

Step 3: Set the Trigger and the Pin#

  • Leave Pin Trigger on Default, so the pin starts from the element's own position. Choose Custom only if you want another element to start the pin.
  • Set End Trigger to Custom, then type .sticky-section in the Custom End Trigger field. Include the leading dot.
  • Leave Pin on True so the element stays fixed while the page scrolls.
BricksFly pin settings with End Trigger set to Custom and .sticky-section entered

Step 4: Set Where the Pin Starts and Ends#

  • Leave Pin Start on Top Top. The first word is a part of the element and the second is a part of the screen, so Top Top pins the element when its top reaches the top of the screen.
  • Set Pin End to Bottom Top. With a custom end trigger, the first word refers to the end trigger, so the pin ends when the bottom of .sticky-section reaches the top of the screen.
  • Leave Pin Spacing on False. True adds space below the pinned element equal to its height, and Custom lets you set your own amount.
  • Set Pin Markers to True while you build, so you can see the start and end points on the page. Set it back to False before you publish.
  • If you want a style that only shows during the pin, such as a background color or a shadow, type a class name in Toggle Class. BricksFly adds that class to the element while it is pinned.
BricksFly Pin Start set to Top Top and Pin End set to Bottom Top
Four stages of a BricksFly pin: Pin Start at Top Top, pinned, Pin End at Bottom Top, released
With the docs' example values, the pin holds from Top Top until the end trigger's bottom reaches the top of the screen.

Step 5: Preview and Save#

Save the page with Ctrl + S and open it on the front end. Scroll down: the title holds at the top of the screen while the page scrolls, and lets go when the bottom of .sticky-section reaches the top of the screen. In this example the card grid has a white background and a higher z-index, so the cards slide up and over the pinned title.

SettingExample valueWhat it does
Pin TriggerDefaultStarts from the container's position
End TriggerCustom: .sticky-sectionEnds at that element
PinTrueHolds the element in place
Pin StartTop TopElement top meets screen top
Pin EndBottom TopEnd trigger bottom meets screen top
Pin SpacingFalseNo extra space below the pin
Pin MarkersTrue while buildingShows start and end markers

The values are the example in the BricksFly docs. Change Pin End first: it decides how long the section stays pinned.

Pin It Instead of Fighting overflow: hidden

BricksFly Pro pins with GSAP ScrollTrigger and sets Pin Start, Pin End and Pin Spacing in the Bricks panel, so you can build the pinned layouts below without writing JavaScript.

Get BricksFly

Three Pinned Layouts to Try#

The Sticky/Pin demos show three layouts you can rebuild with the settings above. The values below are starting points to adjust, not tested settings.

Sticky Rows That Stack#

What the visitor sees: each full-width row stops at the top of the screen and the next row slides up over it. Build: give each row its own container and enable Sticky Elements on each, with Pin True, Pin Start Top Top and Pin Spacing False, so the next row is not pushed down. Set the End Trigger to the class of the section that holds all the rows.

Pinned Image With Scrolling Content#

What the visitor sees: an image stays in one column while several text blocks scroll past in the other. Build: a two-column container. Enable Sticky Elements on the image column, Pin Start Top Top, End Trigger Custom with the class of the two-column container, and a Pin End that releases when the text ends, such as Bottom Bottom.

Pinned Video With Scrolling Text#

What the visitor sees: a video holds in place while a story scrolls beside it. Build: the same structure as the pinned image, with a video element in the pinned column. Use Toggle Class to add a style only while the video is pinned.

For a pinned section that moves sideways instead, see the guide to Bricks horizontal scroll and the BricksFly horizontal scroll extension.

Turn Pinning Off or Adjust It on Mobile#

A pin that works on a wide screen can trap a phone visitor in a tall section. Decide per device before you publish.

  • Pinned with BricksFly: the Breakpoint setting decides which devices the pinning works on, so you can keep it for desktop and leave it off on phones.
  • CSS sticky: Bricks Academy says style values are stored per active breakpoint. Switch to a phone breakpoint in the toolbar and set Position back to static or relative when the columns stack.
  • Reduced motion: some visitors ask their device to reduce motion, which sites can detect with the prefers-reduced-motion media feature. A long pinned section is scroll-linked motion, so keep pins short or turn them off for phones.

Which Method Fits Your Layout#

Start with CSS sticky for anything that should stay beside content in the same row: a sidebar, a table of contents, a call-to-action card. It needs no add-on, and when it fails the cause is almost always a parent: overflow: hidden, a short parent or a missing top value. Use pinning when the section itself should hold the page for a while, when you need a start and end you control, or when a parent's overflow cannot change.

If you build that kind of layout for clients, BricksFly Pro's Sticky Elements extension gives you the settings without JavaScript. Read the GSAP animation for Bricks guide next to combine pins with other scroll effects.

Build Your First Pinned Section in Bricks

Get BricksFly Pro to add the Sticky Elements extension and the other GSAP extensions to Bricks, with the animation libraries loading only on the pages that need them.

Get BricksFly

FAQs#

Why is my Bricks sticky element not sticking?#

The usual cause is a parent: overflow: hidden on any ancestor, or a parent no taller than the sticky element. A missing top value also stops it. Check the four causes above in order.

How do I make a sticky sidebar in Bricks?#

Put the sidebar in a two-column row, select the sidebar block, set Position to sticky and give it a top value. The row must be taller than the sidebar, and the sidebar should not be stretched to the row's height.

How do I pin a section while scrolling?#

CSS sticky cannot hold a section for a set scroll distance. Use GSAP ScrollTrigger pinning, either with code or with BricksFly Pro's Sticky Elements extension, where you set Pin Start, Pin End and Pin Spacing in the Bricks Content tab.

Can I make only part of the header sticky?#

Bricks' Sticky header template setting sticks the whole header. A 2023 forum answer suggests position sticky on the one row, but a 2024 reply says it did not work and no fix is recorded, so test it. Pinning that row with BricksFly is the other route.

Does pinning work on mobile?#

In BricksFly, the Breakpoint setting decides which devices the pin works on. Many tall pinned sections are better turned off on phones, where the columns stack anyway. Test the page at phone width before you publish.

Is the Sticky/Pin extension in the free BricksFly plugin?#

No. The free BricksFly Elements and Templates for Bricks plugin on WordPress.org includes 21 Elements and starter animations. Sticky/Pin is one of the GSAP extensions in BricksFly Pro.

Will pinning slow down my page?#

BricksFly says its animation libraries load only on the pages that need them, and the Sticky/Pin scripts load only when the extension is switched on. Measure your own page with your speed tool before and after adding a pin.

Build this in Bricks, without writing code

Install the free BricksFly plugin and add it visually in the Bricks editor. No custom JavaScript, no credit card.