=== Sticky Content – Make Any Section Sticky on Scroll ===
Contributors: bplugins, abuhayat,shihabshamim,freemius
Donate link: https://www.buymeacoffee.com/abuhayat
Tags: block, sticky, sticky content, sticky menu, sticky item
Requires at least: 6.5+
Tested up to: 6.8
Stable tag: 2.0.0
Requires PHP: 7.1
License: GPLv3 or later
License URI: http://www.gnu.org/licenses/gpl-3.0.html

Sticky Content allows website elements to remain fixed while scrolling. It is a simple and customizable Gutenberg block for creating sticky content .

== Description ==

Sticky Content helps you turn any element on your site into sticky with ease. You can make any block, widget, or section remain visible or appear and disappear as users scroll down the page. It is useful for creating sticky headers, sidebars, banners, call-to-action boxes, or any element you want to keep in view.



The plugin works with the WordPress block editor (Gutenberg). You can also use shortcodes to add sticky elements anywhere on your site. The free version lets you create simple sticky effects, while the Pro version includes advanced triggers, transitions, and layout controls.

Sticky Content is optimized for performance and compatible with all themes and builders. It helps you design layouts that keep important elements visible while scrolling for better user engagement.

=== Key Features – Free Version ===
- **Universal Shortcodes & Block**: Insert via Gutenberg block (in “Widgets” category) or shortcode in posts/pages/widgets.
- **Sticky Mode**: All elements become fixed once they hit the top of the page.
- **Top Position Offset**: Set vertical offset in px for the fixed state.
- **Background Control**: Set a separate background for the sticky state.
- **Padding Control**: Adjust inner spacing for the sticky element.

=== Sticky Content Pro – Unlock Advanced Features ===
When you upgrade to Pro, you get the full suite of sticky capabilities, including:

== Pro Features Include: ==
- **Sticky Modes**: Always, After Scroll, While in View (choose exactly how the element behaves as the user scrolls).
- **Custom Start & End Triggers**: Trigger sticky behavior by ID, CSS selector, or pixel value (start/stop at defined points).
- **Horizontal & Vertical Positions**: Set fixed offsets using  % unit for precise placement.
- **Separate Backgrounds & Sticky Backgrounds**: Distinct styling when static vs sticky.
- **Border, Border Radius & Shadow**: Style main and sticky states independently for more design impact.
- **Z-Index Control**: Ensure the sticky element sits above (or below) other content as needed.
- **Stick Within Container**: Confine sticky behavior to a specific section or container via a custom selector.
- **Scroll Trigger (px)**: Define how many pixels of scroll before the stick effect begins.
- **Transition Animations**: Choose fade, slide, scale, zoom (or none) for smooth sticky transitions.
- **Duration, Delay & Easing Functions**: Fine-tune the animation timing and curve for natural motion.
- **Opacity & Transform Control**: Fade, move, or scale the element during sticky transition for dynamic presentation.

=== How to Use Sticky Content – Step-by-Step Guide ===
Getting started with Sticky Content is quick and easy!

- Install and activate the plugin via Plugins → Add New in your WordPress dashboard.
- In the Gutenberg editor, add the Sticky Content Block from the “Widgets” category; OR use the shortcode in classic editor, widget or template.
- Select the element you want to stick, then in the block’s right-hand sidebar (or shortcode attributes) configure: sticky mode, trigger, offset, styling, animation (if Pro).
- Save or update your page/post.
- View the front-end and scroll to test: as the element hits the top (or your defined start trigger) it will enter sticky mode; if an end trigger is set, it will exit when reached.

For more details or advanced configuration, visit the plugin **Installation** tab.

Enjoy your interactive sticky content!.

== Feedback ==
- Did you like this plugin? Dislike it? Do you have a feature request? [Please share your feedback with us](mailto:support@bplugins.com 'Send feedback')

### Check out the Parent Plugin of this plugin-

[**B Blocks**](https://bblockswp.com) – A blocks collection and page building tool for Gutenberg.


### Check out our other WordPress Plugins-

[**Html5 Video Player**](https://bplugins.com/products/html5-video-player/) – Display videos as single and playlist in multiple skins.

[**PDF Poster**](https://bplugins.com/products/pdf-poster/) – Display/Embed PDF files with different styles.

[**Html5 Audio Player**](https://bplugins.com/products/html5-audio-player/) – Listen audios with awesome visuals.

[**StreamCast**](https://bplugins.com/products/streamcast-radio-player/) – Customizable radio player with different skins.

[**3D Viewer**](https://bplugins.com/products/3d-viewer/) – Embed 3D models and 3D products with interaction.

[**Advanced Post Block**](https://bplugins.com/products/advanced-post-block/) – Show posts and custom posts in different layouts.

== Installation ==

= From Gutenberg Editor: =
1. Go to the WordPress Block/Gutenberg Editor
2. Search For **Sticky Content Block**
3. Click on the **Sticky Content Block** to add the block

= Download & Upload: =
1. Download the **Sticky Content Block** plugin (*.zip file*)
2. In your admin area, go to the Plugins menu and click on **Add New**
3. Click on **Upload Plugin** and choose the **`sticky-menu-block.zip`** file and click on **Install Now**
4. Activate the plugin and Enjoy!

= Manually: =
1. Download and upload the **Sticky Content Block** plugin to the **`/wp-content/plugins/`** directory
2. Activate the plugin through the Plugins menu in WordPress


== Frequently Asked Questions ==

= Is Sticky Content Block free? =

Yes, Sticky Content Block is a free Gutenberg block plugin.

= Does it work with any WordPress theme? =

Yes, it will work with any standard WordPress theme.

= Can I change block settings? =

Yes, you can change block settings from the Gutenberg block editor's right sidebar.

= How many times can I reuse a block? =

You can use unlimited times as you want.

= Where can I get support? =

You can post your questions on the [support forum here](https://wordpress.org/support/plugin/sticky-menu-block/)

== Screenshots ==


1. Default - Sticky
2. Always - Sticky 
3. Always - Sticky (Animation)
4. While In View - Sticky
5. While In View - Sticky (Animation)
6. After Scroll - Sticky
7. After Scroll - Sticky (Animation)
8. General Configuration 
9. Style Configuration

== Changelog ==

= 1.0.2 - 18 Feb 2024 =
* Improve Performance

= 1.0.1 =
* Add translate feature

= 1.0.0 =
* Initial Release.