Prioritize conflicting styles

Last Update: May 19, 2025

Styling elements in the Elementor Editor V4 is built around the idea of classes. For more information about classes in V4, see Classes in Elementor

Working with classes has many advantages, especially the opportunity to reuse elements, making your work faster and more efficient. However, using classes can, at times, mean that you are adding conflicting styles to an element. For example, a paragraph element may have a class that sets the text color to green and another class that sets the text color to red. How does the Editor determine which color to use?

Prioritizing classes and identifying conflicts

In the following example we’ll use two classes:

  • Red_text: This class is set to turn the text red.
  • Green_text: This class is set to turn the text green.

To learn how to create classes, see Classes in Elementor.

To demonstrate class priority and conflict identification, let’s create a sample element. 

  1. Add a Paragraph element to the canvas.
    Since we haven’t styled the paragraph, it will use the default text color – black.
    image 16 Prioritize conflicting styles 1 
  2. Click the Style tab.
    image 17 Prioritize conflicting styles 3

The top of the Style tab has the Classes text box. The Classes text box contains the names of all the classes that apply to the element. Right now, the only class that applies to the element is Local

Local is a special class. Every element has a local class that applies only to that element. At this point, we haven’t added any styles to the local class so the Paragraph element is using the default settings.

Now let’s add some color to the text.
image 18 Prioritize conflicting styles 5

  • In the Classes text box, add the class Red_text.

The text turns red because it uses the color set by the Red_text class.

Now, let’s look at indicators. Indicators show you what settings are being used for your element.
image 19 Prioritize conflicting styles 7

  • Open the Typograph field and look at the Text color setting. The indicator dot is green showing that this is the setting that will be used. 

Now go to the local class and look at the Typography setting.
image 20 Prioritize conflicting styles 9

There is a gray dot by Text Color. That shows this element contains a different class that sets the text color.
image 21 Prioritize conflicting styles 11

  • We’ll go back to the Classes text box and add the class Green_text.

Notice that despite the fact that we added the Green_text class after the Red_text class, it shifts to the left of the Red_class. Classes to the left always take priority over the classes to the right. This means that local class will always take the highest priority as it is always the leftmost class.
image 22 Prioritize conflicting styles 13

To understand why, click the Class Manager icon to open the Class Manager. For details, see The Elementor Editor Class Manager
image 23 Prioritize conflicting styles 15  

Notice that Green_text is above Red_text, meaning it has priority over Red_text. Any element with both Green_text and Red_text will adopt the Green_text settings.

If we look at the Typography settings for each class we”ll see:

  • In the Red_text class there is an orange dot by Text color AD 4nXdurA 7LT01JLEXelEcZxgZ7uxs3H 0V5bk 7eLcW7iZWm9r0ya8T ERRoUGBRe23jURnirnukrcKc8tNo4A45cZFtoGBzhPC1fFS1waqsyU5HSmayz94N7MqTqpkbwi58EBw?key=qzb6HNs8KOoIEJo Prioritize conflicting styles 17. This shows that there is another class overriding the setting for this class.
  • In the Green_text class there is a green dot by Text color AD 4nXeLDF860uXXnxfSBQ8G mHeu mbXCFBHSsyd8 IdcJMpHRxjpR9aI4PVdlVpqEu4zMjcJ9ObSeIMTD2kQVL68gLH3wSrBB4ZHHel0YJ vAxdjr7Plj8QatfSVgrNvyzjT29Muo?key=qzb6HNs8KOoIEJo Prioritize conflicting styles 19. This shows that this is the color used in this element.  
  • In the local class there is a gray dot by Text color AD 4nXdGYiU2uH0ppsCKOmvoGPqqxnu0PItL rX2s9g0hTl cdXvA4g JXEHCiKYJb0f1VzyI0GKLfiZqS5cAhC iwU4ZFdIixOrUJpGe0c 0WW9teuG9F8xUFnvFuwGB0cTXGrIQ5g?key=qzb6HNs8KOoIEJo Prioritize conflicting styles 21. This shows that this element has another class determining this setting but it doesn’t clash with this class.

Finally, let’s see what happens when we edit the local class.
image 24 Prioritize conflicting styles 23

  • In Typography, change the Text color

The text changes to that color because the local class always takes the highest priority. The indicator next to Text color turns pink, indicating that this color is local and has the top priority.

Below is a chart of indicators and what they mean:

IndicatorWhat it means
PinkValue set by the local class. Can never be overridden.
GreenThis setting is currently determined by this class. This can be changed by rearranging the class priorities. 
GrayThis setting is currently determined by another class. 
OrangeThis setting is currently determined by a different class. This can be changed by rearranging the class priorities or can be overridden by the local class.
On this page

Share this article