Heading icon placeholder Launch Alert: Create Custom Post type using Dynamic Fields Engine

How to Add Custom CSS in Elementor: 4 Easy Methods

Custom CSS in Elementor

Looking for ways to add Custom CSS in Elementor?

Extending the already amazing Elementor designs by adding custom CSS can give you an unbeatable edge over your competitors.

So, why not use some Elementor custom CSS and stand out in the crowd of this highly competitive digital world, right?

There is no reason why you shouldn’t.

But how to add custom CSS to the drag and drop Elementor page builder?

Well, you can add custom CSS in Elementor in many ways. To know more details on how to add custom CSS in Elementor keep on reading…

How to Add Custom CSS in Elementor

Adding custom CSS in Elementor allows you to modify and enhance the design of your WordPress website beyond the default styling options. It gives developers and designers more control over layout, colors, spacing, and other visual elements.

Methods to Add Custom CSS in Elementor

✅ Elementor Advanced Tab – Select a section, column, or widget → Go to Advanced → Custom CSS → Add your CSS code. This applies styling directly to that specific element.
✅ HTML Widget – Drag the HTML widget into your page → Add CSS inside a <style> tag. Useful for adding small pieces of custom styling within a page.
✅ Elementor Site Settings – Open the Elementor menu → Site Settings → Custom CSS → Add CSS. This applies styles globally across the entire website.
✅ WordPress Customizer –  Go to Appearance → Customize → Additional CSS in the WordPress dashboard → Add your CSS. This method works outside Elementor and affects the whole site.

Example

If you want to customize the appearance of a button in Elementor, you can add custom CSS to modify its style. After selecting the Button widget in the Elementor editor, go to the Advanced tab and open the Custom CSS field. You can then add CSS code to change the design of that specific button, such as setting the background color to red and the text color to white. You can also increase the padding and add rounded corners to make the button more visually appealing and noticeable on the page.

Summary

Elementor allows you to add custom CSS at different levels, such as element-level, page-level, or site-wide, so you can control exactly where the styling is applied.

CSS (Cascading Style Sheets) is a rule-based style sheet language used to change the layout and appearance of web pages built with a markup language such as HTML or XML. Using CSS is an efficient way of web design because it keeps both content and style in separate file giving you the most flexibility and ease of use.

Why Should You Add Custom CSS in Elementor Site?

Well, it’s not mandatory because Elementor itself provides all the customization options you need to create beautiful websites. However, if you are someone who knows how to code and wants to use your creativity to enhance the look of the site, then you can add Custom CSS in Elementor.

  • Using custom CSS in Elementor, you can override the theme’s style to implement a new style. Suppose you love the whole look of a page that your theme provides, but you want to change the layout a tiny bit in one section; then you can take the help of Elementor custom CSS to do that.
  • Similarly, you can also override Elementor premade template’s design using the custom CSS code snippets.
  • You can also custom design your website to look different on different devices by adding custom CSS code snippets to Elementor.

Where to put your CSS in Elementor

Elementor provides multiple ways to include custom CSS, each with its unique advantages depending on the scope of your styling needs. Here are the primary locations where you can put CSS in Elementor:

  • Elementor Widgets: Add CSS using the Elementor HTML widget.
  • Sections or Columns: Apply CSS to entire sections or columns in the Advanced → Custom CSS tab.
  • Site-Wide CSS: Add global CSS in Elementor → Site Settings → Custom CSS (Pro only).
  • WordPress Customizer: Use Appearance → Customize → Additional CSS for basic site-wide styles.
  • Theme Files or External CSS: Add code to style.css or use an external .css file for advanced needs.

How to Add Custom CSS in Elementor: 4 Different Methods

Adding custom CSS is not at all a hard job. In fact, you can add custom CSS in Elementor using various methods. Here I am sharing with you the safest 4 ways to add Elementor custom CSS.

1. Add CSS using Elementor’s Custom CSS Code Snippets

Elementor provides you with an advanced option to add custom CSS to your sections, columns, and widgets. However, this option is only available with Elementor Pro.

To add custom CSS to any section/inner section of your Elementor website, follow the steps –

  1. Click on the inner section (Six Dots) of the part of the content where you want to apply CSS to go to edit mode.
  2. Move to the Advanced tab
  3. Find Custom CSS. Then, expand the Custom CSS tab and add your custom code.
Adding custom CSS via Elementor's Advanced tab by clicking the inner section

As an example, here, we’ve written custom CSS to style the background in sky blue.

Adding custom CSS to a section of a Elementor page via the Advanced tab's Custom CSS option

Similarly, you can add custom CSS in Elementor widgets as well. Here is an example –

  1. Click on the widget to go to edit mode
  2. Go to the Advanced tab
  3. Find Custom CSS and add your custom code by expanding it
Add custom CSS in Elementor widgets

Here, we’ve written custom CSS to add a green border around the video widget.

Adding custom CSS in an Elementor widget via the Advanced tab

2. Use the HTML Widget to Add Elementor Custom CSS

The second option for adding Elementor custom CSS to your WordPress website is using the HTML widget.

  • Search for the HTML widget and drag and drop it
  • Add your CSS code within a Style tag
Use HTML widget to add custom CSS in Elementor

As an example, we’ve written custom CSS here to style the text in purple.

Elementor HTML widget showing custom CSS applied to display styled text

Note: You can add both inline and standalone CSS using the HTML tag. And don’t worry; only the styles will be reflected on the site, the raw code won’t be visible.

3. Add Custom CSS in Elementor Site Settings

You can also add custom CSS in Elementor using the Elementor Panel Menu. Click on the hamburger menu on the top left corner, then under settings, click on the Site settings option to get access to the global site setting options.

Go to Elementor panel menu to add custom CSS in Elementor Site Settings

Now scroll down to the Custom CSS option, open the tab and add your custom styles here.

In Elementor Site Settings find custom CSS and apply your code

4. Add Custom CSS in Elementor from WordPress Customization Settings

You don’t have to necessarily use the options given by Elementor to add custom CSS. You can also use the WordPress customization options to add custom CSS.

For this, go to WordPress Dashboard ⇒ Appearance ⇒ Customize. 

go to WordPress appearance and click customization options

Now you will find many settings that you can use to customize your WordPress site. Scroll down and open the Additional CSS tab to add custom CSS to your site.

Find Additional CSS tab to apply custom html css to your elementor site

How to Fix Elementor Custom CSS not Working Issue

Sometimes adding custom CSS in Elementor may not reflect on the site immediately due to some technical issues. Here are the steps you can adopt to solve this issue:

1. Regenerate CSS

Regenerating CSS can solve this issue. To regenerate CSS, follow the steps –

  1. Go to Elementor
  2. Navigate to Tools under the Editor option
  3. Click on Clear Files & Data. Don’t forget to save the changes.
Regenerate CSS

2. Clear Website Cache & Browser Cache

Clear the website’s cache with any WordPress cache plugins. You can also clear any server-level cache if you have one. After clearing the website cache, clear your browser cache and refresh the site to check if the CSS is working or not.

3. Theme Incompatibility

Sometimes Elementor theme incompatibility can be the reason for custom CSS not showing up on the front end. You can try to switch to any default theme to check if the CSS is working, if the css shows up on the front end with a default theme then talk to your theme developer about the compatibility issue.

4. Using another page builder along with Elementor

Using multiple page builders at the same time can cause your custom CSS to not work. The simple reason is that CSS from different page builders can conflict with each other and the other page builder can override the Elementor custom CSS. In such cases, you should use only the Elementor page builder.

How to Add Custom CSS in Elementor: Expert’s Insight

Custom CSS becomes valuable when you need deeper control over styling and functionality. It allows developers to modify elements, pages, or the entire website beyond the default design options provided by the builder.

Instead of applying global styles immediately, start by targeting specific elements using Elementor’s element-level CSS controls. This reduces the risk of unintended styling conflicts across the website. Elementor supports applying CSS at three levels such as element, page, and site, and choosing the correct level helps maintain cleaner code and predictable styling behavior.

Additionally, you can use the selector keyword when writing CSS inside Elementor’s Custom CSS field. This automatically targets the selected widget or section without requiring complex selectors. It is easier to apply styles to a specific element without affecting the rest of the page.

Lastly, always keep your CSS minimal and well-structured. Overusing custom CSS or mixing it with multiple page builders can lead to style conflicts or override issues that make debugging difficult. 

Frequently Asked Questions

Have a look at some of the most popular questions related to Elementor custom CSS with answers:

You can add custom CSS in Elementor in 4 ways. Those ways are using HTML block, Elementor Custom CSS snippet, WordPress customize options, and Elementor Site building settings.

From the WordPress customization options, you can add custom CSS in Elementor website for free.

In most cases, small amounts of CSS will not affect website performance. However, very large or poorly optimized CSS files can increase page load times.
To maintain good performance:
– Keep CSS clean and organized
– Remove unused styles
– Minify CSS when possible
– Avoid excessive! Important rules

In almost every case, this isn’t a “bug” in Elementor itself but one of a few common issues:
– incorrect selector
– caching issues
– theme conflicts
– CSS specificity problems

To add HTML in Elementor, use the built-in HTML widget:
– Search “HTML” in the widget panel
– Drag it into your section
– Paste your HTML/CSS/JS code in the box












Wrapping Up with Elementor Custom CSS

Now you know 4 ways you can use to add custom CSS in Elementor. While you can use all of them, you should keep in the mind the CSS hierarchy of priority. For example, an inline style will always get more priority over CSS written on a page level or a website level.

So, I would recommend only using custom CSS when you know CSS very well. Otherwise, you can do more harm than good and end up spoiling your website’s look and layout.

Having said that, if you’re a CSS pro, then you have nothing to worry about, feel free to use the ways described in this blog to add your custom CSS to successfully change the look of your website.


Ataur Rahman Avatar

Ataur Rahman

With over a decade in the WordPress industry, the founder of Wpmet is a true WordPress veteran who has seen everything from the beginning. Through hands-on experience building products used by thousands, he shares exclusive insights, practical strategies, and real-world lessons for WordPress users, developers, and business owners.

Comments

Leave a Reply

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

Table of Contents