How to Make a Sticky Container in WordPress?

Key Takeaways

  • Nexter Blocks allows users to create a sticky container by enabling the Sticky toggle in the Extra Options tab.
  • The Container block offers two sticky types: Normal + Sticky and Only Sticky, providing flexibility in visibility during scrolling.
  • Users can customize the transition speed for the sticky container using the Transition Duration(s) field.
Table of Contents

Do you want to create a sticky container in WordPress? A sticky container keeps the section in a fixed position on the page as the user scrolls, this feature can be particularly useful for displaying important information, such as contact details or a call-to-action, throughout the visitor’s browsing experience.

With the Container block from the Nexter Blocks, you can easily make the section sticky in WordPress.

To check the complete feature overview documentation of the Nexter Blocks Container block, click here.

Requirement  – This block is a part of the Nexter Blocks, make sure it’s installed & activated to enjoy all its powers.

Add the Container block with the appropriate layout to the page and follow the steps –

1. Go to the Extra Options tab, and enable the Sticky toggle.

2. From the Header Type section, you can select the sticky type. Here you’ll find two options – 

  • Normal + Sticky – With this option, you can create a sticky header or container. Where it will be visible initially, when the container reaches the top it will stick and when you scroll up it will scroll down.
  • Only Sticky – With this option, you can create a reverse sticky header or container, where it will not be visible initially but once it reaches the top it will be visible and stick at the top. Once you scroll up it will hide again.   

Select the option as per your requirements.

From the Animation section, you can select the animation effect for how the sticky container will show.

By enabling the On Mouse Scroll Up Sticky toggle, you can show the sticky container on the mouse scroll up only, i.e. it will not stick to the top while scrolling down it will only stick when you scroll up. 

You can add a top offset for the sticky container from the Top Offset field for responsive devices.

Note: When On Mouse Scroll Up Sticky is enabled you won’t see the Top Offset field.

From the Transition Duration(s) field, you can set the transition speed for the sticky container to show.

By enabling the Stay In Container toggle, you can keep the sticky container within its parent container.

Now you should be able to see a beautiful sticky container, this can be used to create a sticky header.

About the Author

Photo of Aditya Sharma CMO of NexterWP
CMO at POSIMYTH Innovations · NexterWP · 7 years experience

He has spent years in the WordPress ecosystem building, breaking, and optimizing sites until they actually perform. He works at the intersection of speed, growth, and usability, helping creators ship websites that load fast and convert. An active WordPress community contributor sharing through tools, tutorials, and direct collaboration. Tested practice, not theory.

WordpressThemesElementorn8nAIClaudeAutomationServer

Share your Thoughts

Get Instant Answers to all your questions about Nexter Blocks,
Extensions & Theme trained on 1000+ Docs and Videos

Still in Doubt? Let’s Assist You

Have Feedback or Questions?

Join our WordPress Community on Facebook!

Related Frequently Asked Questions

What should I do if my sticky container isn't appearing?

If your sticky container isn't showing up, first ensure that the Nexter Blocks are installed and activated. Check that you've enabled the Sticky toggle in the Extra Options tab. If you're using the 'Only Sticky' option, remember that the container won't be visible initially; it will only appear when it reaches the top of the viewport. Adjust your settings accordingly to troubleshoot visibility issues.

Can I use a sticky container for displaying a call-to-action?

A sticky container is ideal for displaying important information like a call-to-action. By keeping the container fixed as users scroll, you ensure that the call-to-action remains visible throughout their browsing experience. This can significantly enhance user engagement, making it a valuable feature for any website.

What is the best animation effect for a sticky container?

Choosing the right animation effect for your sticky container can enhance user experience. The page allows you to select an animation effect in the Animation section. Consider using subtle animations that draw attention without being distracting. A smooth fade-in effect can be effective, as it provides a gentle introduction to the sticky container as it appears.

How does the 'On Mouse Scroll Up Sticky' option work?

The 'On Mouse Scroll Up Sticky' option allows the sticky container to only appear when the user scrolls up, hiding it when scrolling down. This can create a cleaner browsing experience, especially on mobile devices. Keep in mind that if this option is enabled, the Top Offset field will not be visible, so plan your layout accordingly.

Are there any limitations when using the Nexter Blocks Container for sticky elements?

One limitation to note is that the Nexter Blocks Container requires Gutenberg to function; it cannot be used as a standalone theme. Additionally, if you enable the 'On Mouse Scroll Up Sticky' option, you won't be able to set a top offset for the sticky container. Be aware of these constraints when designing your layout.

Last reviewed: April 14, 2026

Related Docs