

All Custom CSS Codes For Divi 5
Smooth dropdown animation
.et-menu li.menu-item-has-children > .sub-menu {
opacity: 0;
transform: translateY(10px);
transition: all 0.25s ease;
visibility: hidden;
border-radius: 2rem;
}
.et-menu li.menu-item-has-children:hover > .sub-menu {
opacity: 1;
transform: translateY(0);
visibility: visible;
border-radius: 2rem;
}
Clamp Size For Heading Hero
1.6rem, 1.2rem + 2.2vw, 3.25rem
BlogPost Overview With Featured Image Aspect Ratio Of 16×9
.et_pb_blog .et_pb_image_container {
aspect-ratio: 16 / 9;
overflow: hidden;
border-radius: 16px; /* adjust to your design */
}
.et_pb_blog .et_pb_image_container img {
width: 100%;
height: 100%;
object-fit: cover;
display: block; /* removes small gaps */
}
All Custom CSS Codes For Divi 4
Different logo on fixed header
.et-fixed-header #logo {
content: url(https://yourdomain.com/wp-content/uploads/logo.png);
}
Change Height Of The Fullwidth Slider
.et_pb_slide {
height: 100vh;
}
Footer text
© 2026 | Ferdy Korp | Disclaimer | Privacy Policy Webdesign: Ferdy
Blurb CSS
border: 1px solid #3194c8; padding: 25px; border-radius: 4px;
Blurb Animation CSS
.animation-blurb.et_pb_blurb:hover {
background: #315669;
transition: all 1.0s ease-in-out 0s;
}
Remove Sidebar Border
.container:before { background-color:transparent !important; }
.et_pb_widget_area_right { border-left:0 !important; }
.et_pb_widget_area_left { border-right:0 !important; }
Contact Form Sum Color
.et_pb_contact_captcha_question {
color: #FFF;}
Black Title
h2 a{
color: #000000;
}
Contact Form Sum Color
.et_pb_contact_captcha_question {
color: #FFF;
Sticky Header Theme Builder
#divi-sticky-header {
top: 0;
width: 100%;
z-index: 99 !important;
}
2 Buttons Side By Side
.pa-inline-buttons .et_pb_button_module_wrapper {
display: inline-block;
}
Vertically Center Content
.et_pb_equal_columns .et_pb_column {
margin-top: auto;
margin-bottom: auto;
}
Padding Teammember
.et_pb_team_member_description {
padding: 20px;
}
In this Divi Theme tutorial I show you how to create a professional website.
How to make a WordPress website with the Divi theme
In this guide I show you step by step how to create a professional website with WordPress and the Divi 5 builder. We build a clean website with clear calls to action, subtle animations and proper spacing, the kind of website that instantly feels trustworthy. You do not need to know any code.
Along the way you learn how to set up global colors, fonts and responsive font sizes, how to use presets so you work much faster, how to make every section look good on tablet and phone, and how to copy sections and save them as templates. The custom CSS codes I mention are at the top of this page.
What you need
- A domain name and web hosting. I use Hostinger, coupon code FERDY gives extra discount.
- The Divi theme. You can use it on unlimited websites, and there is a lifetime option. In the video the lifetime deal was a one-time fee of about $249.
- Optional: Omnisend and Code Snippets for a “coming soon” page with a waiting list
Step 1: Get hosting, a domain and set up WordPress
At Hostinger I chose the Business plan, which has fast NVMe storage, daily backups and a free domain for the first year. Then I went through the setup: WordPress, create a blank website, choose the free domain and pick a server location close to your audience.
I like to work in a tidy space, so I clean up WordPress first:
- Dismiss the welcome message and turn off everything under Screen options.
- Deactivate and delete the default plugins. You can install what you need later.
- Delete the sample pages and post, and empty the trash.
- Under Users, Profile, set your first name and choose how your name is displayed. Add a profile photo through a free Gravatar account.
- Under Settings, General, set your time zone and date and time format.
Optional: while you build, send visitors to a waiting list. I created a landing page form in Omnisend, then used a Code Snippets snippet that redirects visitors who are not logged in to that form. Turn the snippet off when your website is ready.
Step 2: Install Divi, set your site title and create the menu
Download Divi 5 from the members area. In WordPress go to Appearance, Themes, Add theme, Upload theme, then install and activate it. Delete the other themes to keep things clean.
Your site title is important. Do not write “Welcome to my website”, because nobody searches for that. Use what people search for, for example “Plumber in Rotterdam” plus something that makes you stand out, like “24/7 service”. You can also ask ChatGPT for ideas.
Keep the goal of your website in mind when you choose pages: most websites exist to get clients. Then build the menu in the theme customizer under Menus:
- Create a menu called “Main menu” and assign it to the primary menu location.
- Add your pages, for example Home, About, Tutorials, Blog, Recommended and Contact.
- Drag items slightly to the right to make them sub items.
- Under Homepage settings, choose a static page and select your homepage.
Upload a square site icon under Site identity. To start with a blank canvas, I create an empty global header and footer in the Divi Theme Builder and set their max height and padding to zero.
Step 3: Set up variables and presets in Divi 5
Divi 5 works with sections, rows, columns and modules. The Variable manager is where the magic starts. Set it up once and you save time on every page.
- Colors: add your primary, secondary, heading and accent colors, plus white and off white. Change a color later and it changes everywhere.
- Fonts: I use Montserrat for headings and Open Sans for body text.
- Numbers: add clamp values for H1, H2, H3 and body text. Then headings shrink automatically on smaller screens. See my guide on the best font sizes for your website.
Then edit the default presets. I made the default heading an H2 with the H2 clamp size, the primary color and Montserrat, and the default text uses the body size with a line height of 1.8. I also created an orange button preset and presets like “heading sub”, “text align center” and “max width 800”. Every new module now starts with the right style. Finally, set the content width to 1120 pixels in the theme customizer under Layout settings.
Handy shortcuts: Command or Ctrl S to save, Command or Ctrl E to exit the builder, and Command or Ctrl plus period to preview.
Step 4: Build the homepage section by section
For the hero I used two columns (70% and 30%) with a heading, an icon list, an orange button and a photo on a gradient background. Below that come three number counter cards that overlap the hero with a negative top margin, then a centered intro, image cards and an about section.
My most important tip: optimize each section for all devices right after you build it. If you copy a section later, it is already responsive. For tablet and phone I often change the row direction to top to bottom, set the column width to 100% and adjust the spacing. I work with rem: 1 rem is 16 pixels, so 12 pixels is 0.75 rem. Remember: padding is inside, margin is outside.
For backgrounds you can use colors, gradients, images, parallax and blend modes. If you mess up, open the History panel with Shift H and go back in time.
Step 5: Copy sections, save templates and use pre-made layouts
- Open two pages in the builder. Right click a section, choose Copy section, and paste it on the other page.
- For a page title area, right click the section and choose Save to library. On any new page, click the plus and add it from the library.
- To mirror a section, change the row direction from left to right to right to left.
- For the contact page, click the plus, search the pre-made layouts for “contact”, import only the part you need and style it with your colors.
Step 6: Add animations and hover effects
Under Design, Animation you can choose fade, slide, bounce, zoom and more. I prefer fade or slide with an intensity of about 20% and ease out. Right click to copy and paste animation attributes, and add small delays (250, 500, 750 milliseconds) so items appear one after another.
For hover effects, switch to the hover state and change anything that is not grayed out. I move buttons slightly to the right and make image cards a bit brighter. Do not overdo it: the more animations, the slower your website, and your website should help people reach you.
The header with mobile menu and the custom footer are in separate Divi 5 tutorials in the playlist at the top of this page. For a newer AI approach, see my newest WordPress tutorial.
Frequently asked questions
Is Divi free?
No, Divi is a premium theme. You can pay yearly or once for lifetime access, and you can use it on unlimited websites. There is a 30 day money back guarantee.
What is the difference between Divi 4 and Divi 5?
Divi 5 was rebuilt from the ground up. It has a new interface, variables and presets, and much smaller code, so your website loads faster.
How do I make my Divi website mobile friendly?
Use clamp values for font sizes and check every section in the tablet and phone view right after you build it. Change row directions and column widths per device where needed.



Hi Ferdy, I am new with Divi. Your tutorial about it is the best! However I have some trouble to follow your indication to create a filterable portfolio. Do you have any child theme as an example. Maybe if you can leave something similar like what you did in your tutorial. I will appreciate any kind of additional support. Best regards!
Hi Claudio, thank you! I have no child theme. I don’t use child themes. Where do you get stuck?
Hello!
Your tutorial is best. I am making my own website in which i want to add a favorite button on the gallery. Kindly let me know is there any plugin or code help me out in adding favorite button? I am waiting for your response.
Thank you
Im making changes in the gradient color in the background..its working..but when i exit visual builder then the gradient is not seen..when I again enaable the visual builder it again shows the gradient??
Your Divi tutorial is great but I always get stuck when adjusting the content in tablet/phone view. Some of my modules are faded and I don’t know why. Do you have a video that is specific to tablet/phone view that addresses all potential issues for viewing?
Thank you! You can Google ‘Divi Theme Responsive’ and you will find this video: https://www.youtube.com/watch?v=C_ekHuTpS1A
Thank you Ferdy,
One newbie question here: Divi or Elementor Pro?
Looking forward your invaluable advice 😉
Can you please give the source files of the site that you have created in in tutorial.
Hi Muhammad, I can not since it contains premium files with a licence. I can not share that.
Hi!
Your Divi tutorial is the best!
I’m stuck with something tho. I can’t install Let’s encrypt from Siteground. There’s something i’m missing out…
So I go to my account and click to the cPanel, look for Let’s encrypt but when i’m at the ‘Manage Let’s Encrypt Certificates’ page, it doesn’t give me any option to install.
Do you know why is that happening?
Hi Martha, and if you go the lower part of the page you can install a new certificate. Did you try to create a certificate there?
Nope…it doesnt appear that option. I tried to send a screen shot but I don’t know how to ad it on that message.
It’s just showing me the top part where it says domain, type (get wildcard), status and action. There’s nothing underneath.
You can open a Siteground chat. They can help you.
Hi Victor, it depends on what you want. I use them both in one website. https://www.websitehostingrating.com/elementor-vs-divi/
ok. Thank you! Problem solved!
Hi Ferdy,
I need to add google recaptcha to my divi site. I am getting a lot of spam. I was hoping not to pay for a plugin.
Can I do this without a plugin?
Hi Diana, ReCaptcha is free!
Hi Ferdy,
How do I make a frame around the Login button and how do I make a long navigation bar with the home, service, etc… on the one side and Login and Sign In on the other side?
Hello Ferdy,
This is realy nice tutorial,tahnk you. I have a first question (will come more).. 🙂
I am newbee on wordpress. I want to use blurb modul but i can’t find header tag option, can you help me please?
Best regards
You have great WordPress tutorial with different themes. Would be great if you would do several and intensive Divi Theme tutorials
Hello Ferdy,
You have done a such nice job on this tutorial, it is the best one that I found on the whole web until now. Thank you so much
Best regards,
hi Ferdy,
could you help me? I filled in the phone number and email address in the divi customizer, and use the social icons too. How can I fixe this default top header on the right side? Do you know a CSS code for this?
thanks
Adam
Hi Adam, I don’t know how to do that. Buy there is an amazing support area for Divi users. You can submit a ticket at Divi.
Hi Ferdy!
You really made a nice tutorial. Where can I found the demo files right now? You changed your menu since then…
Thankfully, Mika
Very helpful tutorial and also website. Thanks a lot
Hi Ferdy, thank you so much for this video, I’ve made a beautiful website thanks to you! 🙂 I’m wondering, in the video you refer to a tutorial on how to make a blog page with Divi, where can I find this video? Thanks! Kim
Hi Ferdy,
You mentioned in your main Divi tutorial that you have other tutorials that focus on the Divi email component and as well as one for all the Divi modules. I can’t seem to find these videos on this site or on YouTube. Can you let me know where I can find them?
Thank you,
John
Fredy, please can you help us with the template of your demo website. I will really appreciate
Thanks Ferdy,
I learn a lot form your Divi tutorial class. I have one doubt on how to create a contact form and link it with a button the form appears after clicking the button as a poster and that button to be fixed right side of the web page.
Just like this web site http://godrej-bhatia.in/
Hi Ferdy;
Your tutorial is the best; please need to know how to enable the LinkedIn icon in the footer.
Hi Ferdy, i’m using DIVI on my site, i need to translate to eng and french. Is WPML compatible to translate a page and not only a blog. Thanks for your feedback
Hi do you have a link for your tutorials on how to use the various modules in divi
Hey Ferdy,
I found it! Thanks so much for all your help. I’m looking forward to sharing my website with you soon!!!
Ferdy I am eternally grateful for everything you have taught me, from your YouTube wordpress tutorial. can you send me a sample video about hotel full service website including their online booking systems? that are build with in a Divi theme?
email : natjeo23@gmail.com
Hallo Ferdy, ik zag je bij je verhaal voor de Benelux Business Club Scandinavia in Kopenhagen. Fantastiese DIVI tutorial! Waar ligt de beschrijving met de tijdkodes? Ik ben geheel nieuw met DIVI.
Heb jij er voordeel bij als ik het DIVI tema via jou website koop met 10% korting?
Beste Paas-groetjes van Joost – Caseplay.dk
Both Divi and Elementor (https://woostify.com/elementor-vs-divi-comparison/) are the most popular page builder for WP users. And I am using Elementor to build my site. But I am wondering if I can use both Elementor and Divi to build my site?
Hey Ferdy
I follow everything you say in your videos
I have a question about this comment section, How do you custimze it? and how do you remove Next post from this One?
Thank you
This divi course is really amazing and contain the lot of helping content.
sir plz tell me that how i can get divi theme api and username without investment because i cannot pay for this.
for you can help me then my email address is here
amgma0306@gmail.com
Hi Ferdy, Thanks for share such informative videos , i have never ever found such comprehensive video tutorial on you tube for Divi. through this tutorial i download the header and footer json file from the link above but it seems not workable perhaps this is only for apple user only because when i try to import ._Divi Builder Layouts in divi libaray it gives an error “This file should not be imported in this context” .
would appreciate it if you could provide for windows user as well.
Thanks and regards,
adil
Great tutorial.
you mention in the video that there is a separate video in which you teach how to create blog – and another one on how to use filters. Where can I find them?
Thanks sooo much!
Hello Fredy
First of all thank you for all the tutorial.
Would you please make a tutorial for DIVI multi step form with Logic.
Thank you
Modh
Hello!
I created a website with astra theme and elementos. If I want to use divi now, will I loose all the information on my website?
How can I change to divi and keep all the content that I have?
Thank You for all your videos!
Good Evening Brother!
How to create Unblock Notification Button and which plugin you use, below your tutorial page.
hi Ferdy
Thanks for all you do! I’ve learned a lot from you.
I’ve a question regarding one of the CSS – Different logo on fixed header
This one works fine on Google Chrome but fails to switch back in Firefox and the Microsoft browser.
Do you have anything specific for them?
Thanks in advance!
Hello Ferdy Korpershoek 🙂
I’m from Portugal. My English belongs to the old school, what means is not the best, so I’m sorry for the mistakes I might make.
I’ve been your follower on youtube for some time. I have learned a lot from your videos. Today I decided to come here to thank you.
A hug and a special kiss for your beautiful son.
Thanks
Hi Fredy
I always follow you and your course. The course content and explanation are really nice. keep it up.
brother should i use divi or elementor?
FTsaoMrbhZ
Hi Ferdy,
Your DIVI course is great! Learned how to use the framework in no time 🙂
One question: I installed your global footer, but the social icons weren’t there. How can I add them?
Hi Ferdy,
Ik gebruik Divi en wil ook een full width header. Dat is gelukt, maar ik wil de header minder hoog. Nu vult hij het hele scherm en zie je de tekst daaronder niet.
Ik zie nergens een mogelijkheid de hoogte van de FW header bij te stellen (minder hoog te maken).
Graag hulp en alvast bedankt!
Hallo Ferdy,
Nnice tutorial,tahnk you.
How can I have exactly the same drop-down ” TUTORIALS”menu as the one on your website ?
Thank you
Thank you for your great tutorial. I got a quick question. You mentioned the https://ferdykorpershoek.com/modules/ page in your video (1:54) but when I tried to visit the page I got a 404 error. Did you remove the page from your website or did you move it somewhere else?
Hi Ferdy,
I have taken many of your courses on Udemy and YouTube! Thanks for all the great information! I signed up for SiteGround and am currently using Divi Builder. Both great recommendations!
I wanted to know if you have a tutorial for Divi and WooCommerce? I know you have one for Elementor. Right now I have a site already built using Divi, I just need to be able to setup ecommerce, i.e. Shop, Cart, Checkout, etc. within the Divi website.
Thanks,
Michael
Looking for someone with your talent level to build me a 3 or 4-page pet blog site. I’ve got Divi installed but it’s a little more complicated than I thought it would be. Any thoughts on a possible candidate.
HI, FERDY KORPERSHOEK
Am a student and also a wed developer i do write code from scratch before but with this tutorial i dont really need to start writing code from scrach again bcos this just the easier and fastest way to make a site
Thanks.
Hey Freddy,
In welke video leg je juist uit hoe je een pagina 404 ‘page not found’ maakt in Divi? Ik dacht dat ik dit ergens had zien passeren, maar weet niet meer juist waar!
Alvast bedankt!
I was looking into purchasing Divi. Your tutorial is the best tutorial I have seen and now I am convince to purchase it. Thanks a lot for such a great information!.
Thank you Janet! Goodluck with your website!
Hi FERDY, I saw this training theme on the Elegant site with the following link (https://www.elegantthemes.com/blog/divi-resources/creating-the-advanced-elegant-themes-dropdown-menu-with-divis- theme-builder), but I do not know how to create an Ajax account feature similar to the Elegant theme site that registered by hovering the mouse without clicking. please guide me.
Hi Ferdy,
Hope you are well!
I am a complete newbie in web designing. I have started watching your tutorial on Youtube (4hr one!) and am middle of it and have been replicating my WordPress the way you are going in the video. It’s an amazing lesson I must say.
However, a query; might be a ridiculous one. However, say I become a freelancer in WordPress web developer one day and I have a Divi lifetime license. And I work on Upwork/Frelanceing website and I take a WordPress web designing project from a client. Then I start working with the client-purchased domain and I install WordPress there and start building with Divi. Now, my question is- after I finish the website or while delivering the final product to my client, what will happen to the API Keys that I used while building the web? I mean won’t the client see the keys or able to modify them later as per his/her wish? Or can I just uninstall Divi bulders during delivery and nothing is impacted?
Regards,
Taposh Roy
Wonderful Job Ferdy, i really found it easy all the way. God bless
Hi Ferdy,
My name is Widjai and watch always your tutorials about Divi, wich are great and very educational. Thanks a lot.
But I also want some advice about plug-ins for my dutch websites:
– reviews plug-in
– appointment booking plug-in
I get confused which one to use for my website (s). Could you please advise?
Thanks,
Widjai
Hi Ferdi, great tutorials.
I am going through your latest Divi website tutorial but have an issue I can’t fix.
When I duplicate the section for mobile, change the visibility to only show on mobile, etc. (around 1hr 55min mark in this video – https://www.youtube.com/watch?v=A_ix2PpzW04&t=1s), I get a problem.
The divider I had for the desktop section doesn’t show up anymore, even though it is still there in the settings. I have tried the Z- index trick with no luck, it has just visually disappeared.
Can you please help?
1 more thing. If I delete the duplicate section for mobile, then the divider reappears again.
Hello our talent and hero Fredy you are doing GREAT AMAZING work, we leave every thing and start feed our starving from your great web site and platforms.
Thanks a lot, Keep it up, Don’t give up the fire
My question (for divi and elementor) Are them support Right to left langues (Arabic) ?
The question of the day is ‘ how do I list my posts in alphabetical order” I have the page organized and it is showing me the category posts I want but I can’t change the order of how they are stored, meaning that they are simply sorted like all post from newest to oldest. I know that Testimonial posts in full width can be showed in random order but a 3 column posts just go back to default. What am I missing?
Bro you suppose to sell your courses, you already have one to sell?
This is absolutely the most detailed and informative tutorial I have seen on youtube, or anywhere else, on any subject. Sometimes I have to slow it down to catch the detail being presented. I also watched the Blog, Profile, and Contact form tutorials. Thank you for being a great resource.
I cannot find the images belonging to the tutorial 2022
Hey Ron, sorry. I just added them to the zip file!
Hello Ferdy, from your templates, I can only see HeaderFooter.json and I have not been able to upload it on. There is no header.json. Please how do i use the headerfooter.json? I went to the theme builder to build the custom header from scratch but it is not uploading the HeaderFooter.json. I tried adding it via divi library but to no avail as well. Please help.
Hi Ferdy, I love you amazing Tutorials on Divi.
You have converted me to stop using WIX for my clients and from now on I will be using WordPress Divi.
Can you please do a tutorial on One Page Website For One Product with Divi and the best plugins to use for shopping cart, and shipping. (if in Australia)
I know you like WooCommerce, but something that be all done through WordPress Divi, that doesn’t require to shall out even more money on another yearly services like WooCommerce, if possible.
Nice tutorial, thanks
Hi FerdyKorp
Thanks for the wonderful job you’re doing!
Do you have a tutorial for slider in divi? If you do, kindly share the link
Kind regards,
Love your tutorials! Can you point me to instructions on how to use a YouTube video for a full page background WITHOUT the YouTube video title, etc. Elementor seems to be able to do this, but I can’t figure it out in Divi. I can get rid of the controls, sound…everything but the video title in Divi.
hello, how can i contact you to make improvment to my site ( i have divi tool)?
do you paied service to keep my site under your control ?
Hello fery,
Maybe you can do in the future divilife.com plug-in (divihack) maybe it’s interesting
wow, great tutorials.!
a few questions:
can you edit the database backend by adding a column/foreign key from another table?
also, database: mySQL/postgreSQL or mongoDB or something similar?
also, how do you do a global fixed footer?
can you integrate CSS frameworks like bootstrap or tailwind for styling?
can divi do things like set up a style switcher from the backend for the frontend using cards and checkboxes?
ok, cheers.
Hi Ferdy,
Thank you very much for your great Divi-tutorials. I am a noob in making websites and it has helped me a lot to build our website with Divi up to where it is now.
I have one challange at the moment, where I hope you can help me with. Some of the links in the footer of our website don’t work/direct to a page. How can I fix this? What am I doing wrong?
Cheers,
Hi Ferdy, thanks so much for your Divi tutorials! I’m learning a lot! I am working on the Advantage one but I seem to be missing pictures that you are using from the images tutorial ‘how to make a website 2022’. Missing the Bebe, Keri lotion, etc also background stroke and circle. I believe there is more missing but can’t read it off your video!
I did your create a portfolio video thinking that it would be the portfolio of the cosmetics but it was the wedding. I’m new so getting confused as the cosmetic one looks different and then you duplicate it and add more etc. Hard to follow or am I totally missing something?! Which could be the case!
Looking forward to finishing you’re other tutorials! Thanks for your help!
you put out some great work from which i learned quite a bit. disabled my adblocker on your sites.
Hello Ferdy,
Fantastic content. Thank you so much. I currently have a website that is managed. I would like to follow your steps to create an updated website and drop my managed service.
I would like to first create the website, and then when I am happy with and tested it would then redirect my domain to this new website. What is the best process to accomplish this without losing the back links and domain authority I have established with my existing domain?
Thanks in advance
Hi Freddy,
Thank you for your wonderful effort and guidance. Going through the https://www.youtube.com/watch?v=tSb5xKeqNKc video to build my site in divi. Very early stages but hopefully will be able to build something nice gurugyan.net
Hello,
Your link for /amstuff is broken. I am not able to access the download files to continue following your Divi/Wordpress Tutorial.
HI Ferdy,
Thank you so much for your explanation!
How is it possible that my builder shows other things then the normal site? I got one tab with the builder and one tab with the builder of (the page customers see), they are different, like the marges.
What do i do wrong?