How To Add Custom CSS/Javascript In Elementor Free Version

Contents

4.4
(57)

If you are using the free version of Elementor, you’ll notice that adding custom css to the page isn’t supported. Elementor says that it’s a feature of the pro version.

custom css in elementor free version
custom css in elementor free version

What can you do? Are you going to upgrade? Well, if you can, I recommend you to do so. It’s worth the price.

However, if you just need to add some CSS and not quite ready to upgrade yet, let me show you a walk around.

Adding custom CSS in Elementor free version

Now, let’s find the HTML element and drag it into your page:

How To Add Custom CSS/Javascript In Elementor Free Version 11

Now, you’ll see the HTML on your page look like this:

How To Add Custom CSS/Javascript In Elementor Free Version 12

It doesn’t look very attractive. However, you don’t need to worry about that. It will not show up on your final page (the page that your visitors see).

Now, let’s hover your cursor over the HTML element, you will see the edit icon appears:

How To Add Custom CSS/Javascript In Elementor Free Version 13

Then, you’ll see the HTML box appears on the left of your screen:

How To Add Custom CSS/Javascript In Elementor Free Version 14

While it says HTML code, there is nothing prevent us to enter CSS code 😉

Let’s enter some CSS code:

<style>
body p {
    color: red;
}
    
</style>

And you’ll see, my page has red text:

How To Add Custom CSS/Javascript In Elementor Free Version 15

Now, update your page and see the changes.

Conclusion

Some of you may say that, putting style tag inside the body is not recommended. Well, that’s a thing of the past. HTML5 is finally allow the style tag in the body. If you don’t mind reading length specification page, here you go.

You don’t limit to put just css in the HTML box. You can put HTML (of course) and also javascript code. This enable some very interesting feature that you cannot do with the default elements provided by Elementor.

Click on a star to rate it!

Average rating 4.4 / 5. Vote count: 57

No votes so far! Be the first to rate this post.


5 thoughts on “How To Add Custom CSS/Javascript In Elementor Free Version

  1. Or use “CSS and Javscript toolbox” plugin, that way you’re compatible with older browsers that don’t allow js in the body

  2. To be more precise and avoid that custom styles change anything outside the section where we want to customize our CSS, I’ll use either of the two options Elementor provides to identify a box:
    In the following case I use the “css-id” tag that I assigned in the CSS ID box of the section I want to customize:

    body #css-id p {
    background-color: #DAF7A6;
    }

    Now, in this other example I refer to the class “class-name” that I previously assigned in the CSS Class box of the section I want to handle:

    body .class-name p {
    background-color: #DAF7A6;
    }

    (Excuse me, and I hope the English translation doesn’t create any confusion)

Leave a Reply

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