- In this quick Divi tutorial, I’ll show you how to target and apply CSS to just the homepage in Divi! However, this trick will work on ANY WordPress theme you use 🙂In short, you can target the home page in Divi (or any other WordPress theme) by putting “.home” in front of any CSS element.For example, if you wanted to have a transparent menu on just the homepage, you can add this CSS:
.home #main-header {
background
:
transparent
;
}
When you put the “.home” class in front of any CSS element, those customizations will only effect the homepage and not the rest of the website.
This isn’t likely an effect that you’ll use too often but it’s super handy when you want to make the homepage of a website look much different than the rest.
Enjoy!
Additional helpful resources:
WordPress Post 4
Share:
Facebook
Twitter
Pinterest
LinkedIn
Filip Kostadinoski
Social Media
Most Popular
Get The Latest Updates
Subscribe To Our Podcast
No spam, notifications only about new products, updates.
On Key
Related Posts
Appearances 4
You may now be, or may eventually be at, a point where you’re slammed and you just can’t take on more projects as a solo-preneur.
Appearances 3
You may now be, or may eventually be at, a point where you’re slammed and you just can’t take on more projects as a solo-preneur.
Appearances 2
You may now be, or may eventually be at, a point where you’re slammed and you just can’t take on more projects as a solo-preneur.
Appearances 1
You may now be, or may eventually be at, a point where you’re slammed and you just can’t take on more projects as a solo-preneur.
CONNECT WITH ME ON FACEBOOK!
Like and Follow Me on Facebook to connect with me, see exclusive Facebook-only webinars, Q&A’s and to get exclusive deals and offers I only provide to my FB followers!
JOIN MY FREE DIVI FACEBOOK GROUP!
Join my Divi Web Designers Facebook group to get free support and to be automatically plugged into an awesome, supportive community of fellow Divi/WordPress web designers!
GET ACCESS TO MY LATEST CONTENT!
Registration Form
I offer exclusive discounts and deals to my email list and promise not to abuse the privilege to email you directly. No spam. Just special deals, important announcements and a notification when a new tutorial or video goes live!
Oh, and you’ll also get my latest e-book.