Elementor Custom CSS Tutorial: Selector, Site-Wide CSS and Snippets

Add custom CSS in Elementor: the selector keyword, page and site-wide CSS, free-version workarounds and useful snippets.

Card: Elementor custom CSS tutorial

Table of Contents

In Elementor Pro, add custom CSS to any widget or container under Advanced, Custom CSS, using the word selector to target that element (for example selector { border-radius: 20px; }). For site-wide CSS, use Site Settings, Custom CSS. Without Pro, add a CSS class in Advanced, CSS Classes and write the rules in Appearance, Customize, Additional CSS.

Key takeaways
  • selector targets the current element in Pro.
  • Site-wide rules go in Site Settings, Custom CSS.
  • Free version: CSS classes plus Additional CSS.
  • Use media queries for device-specific tweaks.
  • Prefer widget settings first; CSS for what settings cannot do.

Where can you add CSS in Elementor?

LocationScope
Widget or container, Advanced, Custom CSS (Pro)That element
Page Settings, Advanced, Custom CSS (Pro)That page
Site Settings, Custom CSS (Pro)Whole site
CSS Classes + Additional CSS (free)Anywhere the class is used

Which CSS snippets are most useful?

  • Gradient text: selector .elementor-heading-title{background:linear-gradient(90deg,#0A2540,#66C10A);-webkit-background-clip:text;color:transparent}
  • Card hover lift: selector:hover{transform:translateY(-6px);transition:.3s}
  • Mobile-only tweak: @media(max-width:767px){selector{padding:20px}}
  • Anchor offset: selector{scroll-margin-top:90px}
1-to-1 tutoringLearn WordPress faster with a mentor

Live 1-to-1 WordPress and Elementor lessons on your own site, from $40. Every lesson recorded. Beginners welcome.

See lessons and prices

How do you find the right selector?

Picture trying to change a button’s hover colour that has no setting. Right-click it, choose Inspect, find its class in DevTools, test a rule live, then paste it into the widget’s Custom CSS using selector as the prefix. That is the full workflow. Learn the fundamentals in HTML and CSS basics for WordPress users.

Want to learn Elementor CSS faster with a tutor?

I teach WordPress and Elementor 1-to-1 over Zoom or Google Meet, on your own website, at your pace. Lessons start at $40, every lesson is recorded so you can rewatch it, and you get a short checklist afterwards. Beginners, business owners, students and freelancers are all welcome. See lessons and prices or book a free intro call.

Frequently asked questions

How do I add custom CSS in Elementor?

In Elementor Pro, use Advanced, Custom CSS on any element with the selector keyword; site-wide CSS goes in Site Settings.

Can I add CSS with Elementor Free?

Yes: give the element a CSS class and add rules in Appearance, Customize, Additional CSS.

What does selector mean in Elementor CSS?

It is replaced with the unique class of the current element, so rules only apply to it.

How do I apply CSS only on mobile?

Wrap the rule in a media query such as @media (max-width: 767px).

Sources

1-to-1 tutoringLearn WordPress faster with a mentor

Live 1-to-1 WordPress and Elementor lessons on your own site, from $40. Every lesson recorded. Beginners welcome.

See lessons and prices
Written by Tanvir H

WordPress and Elementor web designer at Tanvir WebXprt, Bangladesh, with 7+ years of experience and 650+ projects for clients worldwide. Tanvir builds, fixes and speeds up WordPress sites every week and writes these guides from that hands-on work.

Keep learning

More WordPress guides

Done for you

Rather have an expert run your WordPress site?

Tanvir H is a Bangladesh-based WordPress and Elementor web designer with 7+ years of experience, 650+ projects and a 4.9 client rating. New websites, redesigns, fixes, speed, security and SEO, handled by one expert who explains everything in plain English and works with clients worldwide.

Website developmentWordPress, Elementor & WooCommerce sitesfrom $899
Fixes & speedErrors, hacks, Core Web Vitals, upgradesFree quote
SEO & paid adsRank on Google, run Meta & Google Adsfrom $300
Creative designWeb, graphic & brand identityfrom $220

Contents

Was this helpful? Spread the word and share with your network!
Facebook
Pinterest
LinkedIn
Reddit
VK
X
Telegram
Threads
Tumblr
Email
WhatsApp
Pocket

Leave a Reply

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

Related Article