Skip to content
Coding India Lab
  • PDF Tools
    JPG to PDF

    JPG to PDF

    PNG to PDF

    PNG to PDF

    WEBP to PDF

    WEBP to PDF

    Protect PDF File

    Protect PDF File

  • Category

    SVG Converter

    • PNG to SVG
    • JPG to SVG
    • WEBP to SVG
    • AVIF to SVG

    SEO Tool

    • HTML Heading Checker
    • Word Counter
    • Keyword Density Checker
    • Internal Link Checker
    • Meta Tags Analyzer
    • Meta Tags Generator

    Excel Converter

    • Excel to XML
    • Excel to HTML
    • Excel to JSON
    • JSON to Excel

    Social Downloader

    • Instagram Reel
    • Facebook Reel
    • Facebook Video
    • YouTube Thumbnail
    • Vimeo Thumbnail

    Text Converter

    • Lower Case To Upper Case
    • Remove Duplicate Words
    • Auto Capitalize Sentences
    • Online Text Editor

    Colors Converter

    • Hex To Pantone
    • RGB To Pantone
    • RGB to HEX
    • CSS Gradient Generator

    WEBP Converter

    • JPG To WEBP
    • PNG To WEBP
    • WEBP To JPG
    • WEBP To PNG

    Minify Generator

    • CSS Minify
    • HTML Minify
    • JS Minify
  • Calculator Tools
    • Cubic Feet
    • Volumetric weight
    • KG to Pound
    • Length unit converter
  • Pages
    • About Us
    • Privacy and Policy
    • Terms and Conditions
    • Disclaimer
    • Contact Us
  • Blog
How to make sticky section in Elementor for free?

How to make Sticky Section in Elementor for free?

admin, January 27, 2025January 27, 2025

Adding a sticky section to your Elementor Free creates a very professional and practical look for your site. Though the default functions that are added to Elementor Pro already make sure the elements could be set sticky, it’s easily achieved within the free version as well using some minor custom CSS along with a touch of jQuery. Just to help, I’m listing here how you could achieve it in detail on the section that has been used below using the example code.

Steps to Create a Section Sticky in Elementor Free

1. Understand the Structure

Before the code, let’s break down the structure first:

Header on top

Two-column layout where the content will be on the left side and sticky form on the right side. This sticky form will stay inside the viewport when scrolling over the content.

2. Basic HTML Structure

<section class=”banner”>
<h1>Welcome to the Banner Section</h1>
</section>

<section id=”content” class=”content”>
<div class=”text”>
<p>Your content goes here…</p>
<!– Add more content as needed –>
</div>

<div class=”form-container”>
<form id=”sticky-form”>
<h3>Contact Us</h3>
<label for=”name”>Full Name</label>
<input type=”text” id=”name” name=”name” required>

<label for=”email”>Email</label>
<input type=”email” id=”email” name=”email” required>

<button type=”submit”>Submit</button>
</form>
</div>
</section>

Here is a simple HTML layout for the sticky section:

This structure has a header, a text element, and a form that sticks to the right-hand side upon scrolling.

3. Add Custom CSS

The following CSS styles will make the structure responsive as well as the sticky form behave as expected.

.banner {
background: #007bff;
color: white;
text-align: center;
padding: 50px 0;
}

.content {
display: flex;
justify-content: space-between;
padding: 50px 20px;
max-width: 1200px;
margin: 0 auto;
}

.text {
flex: 2;
}

.form-container {
flex: 1;
position: relative;
}

#sticky-form {
background: #f8f9fa;
padding: 20px;
border: 1px solid #ddd;
border-radius: 8px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.fixed {
position: fixed;
top: 20px;
z-index: 10;
}

4. Add jQuery for Sticky Behavior

The form is set to be sticky by adding the following jQuery snippet:

<script src=”https://code.jquery.com/jquery-3.6.0.min.js”></script>
jQuery(document).ready(function () {
const form = jQuery(‘#sticky-form’);
const container = jQuery(‘.form-container’);
const offsetTop = container.offset().top;

jQuery(window).on(‘scroll’, function () {
const scrollTop = $(window).scrollTop();

if (scrollTop > offsetTop) {
form.addClass(‘fixed’);
} else {
form.removeClass(‘fixed’);
}
});
});

This script calculates the top offset of the form container. Adds a class .fixed when the user scrolls past the container’s position.

5. Test Responsiveness

Test the sticky section perfectly on all devices. This CSS includes the media query. It would switch up the layout on the small screens. For instance, if width 768px, then it would have one-column view.

6. Adding this to Elementor Free

In Elementor Free, do the following:

  • Create a two-column section.
  • Insert your text content into the left column.
  • Insert your form (using a shortcode or HTML widget) into the right column.
  • Open the section’s settings and add the following CSS in the Advanced > Custom CSS tab (if available). For free users, add the CSS to your theme’s stylesheet or a customizer.
  • Put the jQuery script in the Custom Scripts or the footer file of your theme.

7. Live Preview and Fine-Tuning

Save your modifications and preview the mode on. Now your form will scroll behind your sidebar. If the results are not ideal, fine-tune the CSS and JavaScript codes as per your layout.

Thus, there is a sticky section in the Elementor free version, so you can produce an excellent experience on your site.

WordPress

Post navigation

Previous post
Next post

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Recent Posts

  • How Do I Copy Text from an Image?
  • How do you merge two PDF documents into one?
  • How to Bulk Convert Images to WebP For Free?
  • How to create a QR code for free?
  • How to Calculate Interest Rate Per Month?
  • Convert HTML Table To JPG Image Using Javascript
  • Convert Images Into WEBP Free Unlimited
  • Convert JPG Image To WEBP Format Using PHP Mysqli JQuery
  • Create GIF Images Using HTML JQuery
  • Resize Your Images Online Unlimited
  • How To Change PNG To WEBP Using PHP JQuery
  • Image To Video Converter Using HTML JQuery

Categories

  • birthday wishes
  • html
  • jquery
  • php
  • seo
  • social
  • tools
  • WordPress

Social Tools

  • Facebook Reel Downloader
  • Facebook Video Downloader
  • YouTube Thumbnail Downloader
  • Vimeo Thumbnail Downloader

Image Converter

  • Bulk JPEG To WEBP
  • Bulk JPG to WEBP
  • Bulk PNG to WEBP
  • Bulk WEBP to PNG
  • Bulk WEBP Converter

Text Converter

  • Character counter
  • Remove Duplicate Words
  • Word Counter
  • Small Text Generator
  • Reverse Text Generator

PDF Tools

  • JPG to PDF
  • PNG to PDF
  • WEBP to PDF
  • Protect PDF file
©2025 Blog | WordPress Theme by SuperbThemes

Copyright © 2025 Coding India Lab. All rights reserved.