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

Buscando maneras de ¿Agregar CSS personalizado en Elementor?

Ampliar los ya sorprendentes diseños de Elementor agregando CSS personalizado puede brindarle una ventaja inmejorable sobre sus competidores.

Entonces, ¿por qué no utilizar CSS personalizado de Elementor y destacar entre la multitud de este mundo digital altamente competitivo, verdad?

No hay ninguna razón por la que no deberías hacerlo.

Pero, ¿cómo agregar CSS personalizado al creador de páginas Elementor de arrastrar y soltar?

Bueno, puedes agregar CSS personalizado en Elementor de muchas maneras. Para conocer más detalles sobre cómo agregar CSS personalizado en Elementor keep al leer…

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.

Ejemplo

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 Lengüeta avanzada and open the CSS personalizado 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.

Resumen

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?

Bueno, no es obligatorio porque 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.
  • De manera similar, también puede anular el diseño de la plantilla prefabricada de Elementor utilizando fragmentos de código CSS personalizados.
  • También puede personalizar su sitio web para que se vea diferente en diferentes dispositivos agregando fragmentos de código CSS personalizados a 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 Avanzado → CSS personalizado pestaña.
  • Site-Wide CSS: Add global CSS in Elementor → Site Settings → Custom CSS (Pro only).
  • WordPress Customizer: Usar 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

Agregar CSS personalizado no es un trabajo difícil. De hecho, puedes agregar CSS personalizado en Elementor usando varios métodos. Aquí comparto contigo las 4 formas más seguras de agregar CSS personalizado a Elementor.

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, Esta opción sólo está disponible con ElementorPro.

Para agregar CSS personalizado a cualquier sección/sección interna de su sitio web Elementor, 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. Muévete a la Lengüeta avanzada
  3. Encontrar CSS personalizado. 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.

  • buscar el HTML widget y arrástralo y suéltalo
  • 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

Nota: 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, haga clic en la opción Configuración del sitio para obtener acceso a las opciones de configuración global del sitio.

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

Ahora desplácese hacia abajo hasta la opción CSS personalizado, abra la pestaña y agregue sus estilos personalizados aquí.

In Elementor Site Settings find custom CSS and apply your code

4. Add Custom CSS in Elementor from WordPress Customization Settings

No es necesario utilizar necesariamente las opciones proporcionadas por Elementor para agregar CSS personalizado. También puede utilizar las opciones de personalización de WordPress para agregar CSS personalizado.

Para esto, vaya a Panel de WordPress ⇒ Apariencia ⇒ Personalizar. 

go to WordPress appearance and click customization options

Ahora encontrarás muchas configuraciones que puedes usar para personalizar tu sitio de WordPress. Desplácese hacia abajo y abra el Pestaña CSS adicional para agregar CSS personalizado a su sitio.

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

How to Fix Elementor Custom CSS not Working Issue

A veces, agregar CSS personalizado en Elementor puede no reflejarse en el sitio de inmediato debido a algunos problemas técnicos. Estos son los pasos que puede seguir para resolver este problema:

1. Regenerate CSS

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

  1. Ir a Elementor
  2. Navegar a Herramientas bajo la Editor option
  3. Haga clic en Clear Files & Data. Don’t forget to save the changes.
Regenerate CSS

2. Clear Website Cache & Browser Cache

Borrar el caché del sitio web con cualquier WordPress complementos de caché. También puede borrar cualquier caché a nivel de servidor si tiene uno. Después de borrar el caché del sitio web, borre el caché de su navegador y actualice el sitio para verificar si el CSS está funcionando o no.

3. Theme Incompatibility

A veces Tema de elemento La incompatibilidad puede ser la razón por la que el CSS personalizado no aparece en la interfaz. Puede intentar cambiar a cualquier tema predeterminado para verificar si el CSS está funcionando, si el CSS aparece en la interfaz con un tema predeterminado luego habla con el desarrollador de tu tema sobre el problema de compatibilidad.

4. Using another page builder along with Elementor

El uso de varios creadores de páginas al mismo tiempo puede hacer que su CSS personalizado no funcione. La razón simple es que el CSS de diferentes creadores de páginas puede entrar en conflicto entre sí y el otro creador de páginas puede anular el CSS personalizado de Elementor. En tales casos, debe utilizar únicamente el creador de páginas Elementor.

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. 

Preguntas frecuentes

Eche un vistazo a algunas de las preguntas más populares relacionadas con el CSS personalizado de Elementor con respuestas:

Puede agregar CSS personalizado en Elementor de 4 maneras. Esas formas son usar el bloque HTML, el fragmento de CSS personalizado de Elementor, las opciones de personalización de WordPress y la configuración de creación de sitios de Elementor.

Desde las opciones de personalización de WordPress, puede agregar CSS personalizado en el sitio web de Elementor de forma gratuita.

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

Ahora conoce 4 formas que puede utilizar para agregar CSS personalizado en Elementor. Si bien puedes usarlos todos, debes tener en cuenta la jerarquía de prioridad de CSS. Por ejemplo, un estilo en línea siempre tendrá más prioridad que el CSS escrito a nivel de página o de sitio web.

Por lo tanto, recomendaría utilizar CSS personalizado únicamente cuando conozca muy bien CSS. De lo contrario, puedes hacer más daño que bien y terminar estropeando el aspecto y el diseño de tu sitio web.

Dicho esto, si eres un profesional de CSS, entonces no tienes nada de qué preocuparte; siéntete libre de utilizar las formas descritas en este blog para agregar tu CSS personalizado y cambiar con éxito el aspecto de tu sitio web.


Avatar de Ataur Rahman

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.

Comentarios

Deja una respuesta

Tu dirección de correo electrónico no será publicada. Los campos obligatorios están marcados con *

Tabla de contenido