Custom CSS in Elementor

Custom CSS lets you add custom code to your site, giving it a unique look and feel.

What is CSS?

CSS (Cascading Style Sheets) is a way to add styling to your web page – things like colors, fonts, spacing and positioning. One of the great things about the Elementor Editor is that it allows you to add many of these styling elements without knowledge of CSS. However, Elementor Pro also allows web creators with CSS knowledge to add custom CSS, giving their pages a unique look and feel.

Tip: Users without CSS knowledge can use Elementor AI to generate CSS using the custom CSS feature.

Where can you add Custom CSS with Elementor?

The Elementor Editor allows you to add Custom CSS at three different levels:

  • Site Level: adding custom CSS here will affect your entire site
  • Page Level: adding custom CSS here will only affect a specific page
  • Element Level: adding custom CSS here will only affect a specific element

Custom CSS Examples

Where the code is enteredInsert this codeEffect the CSS will have
Site Settings panelbody {
  background-color: red;
}
Gives all the pages on your site a red background
Page Settings panelbody {
  background-color: blue;
}
The page background blue. 
Note: This page-level CSS overrides any site-level CSS settings, so even if you used the site CSS described above, this page would still have a blue background
Advanced tab of the element.#my-element {
  background-color: green;
}
This targets a specific element, with the CSS ID `my-element` and gives it a green background. 
Note: This CSS overrides any site-level or page-level CSS to give the element a green background, so even if you used the site and/or page CSS described above, this page would still have a blue background.

Related articles

在社交網絡上分享它

今天開始使用Elemenor

加入數百萬專業人士,使用Elementor更快、更好地構建WordPress網站

本頁內容