Blog

How to change the color of menu’s links in Divi

Blog

How to change the color of menu’s links in Divi

How to change the color of menu’s links in Divi

Divi is a popular WordPress theme that offers a powerful page builder and a wide range of customization options. However, it does have its limitations, and sometimes we need to add CSS code. While we can edit various elements such as link colors, font sizes, letter spacing, etc., directly from the backend, one aspect we can’t easily modify is the link color when hovered over. By default, Divi only reduces the link’s opacity to 70%. So, how can we change the color of menu links in Divi?In this tutorial, we’ll provide a code snippet to achieve the desired “divi change link color”.

Divi change link color, with Divi options

divi change link color

CSS for changing menu link hover color in Divi:

Here are the steps to change the color of links with Divi WordPress:

  1. Login to your WordPress dashboard and go to the Divi Theme Customizer
  2. Navigate to the “Additional CSS” and paste the next CSS code.
  3. Once you have added the code, click “Publish” to save your changes.
divi change link color
#top-menu-nav>ul>li>a:hover{
	color:red;
	opacity:1;
}

The result:

change link color hover divi

Change the color of only one link

How to change the color of menu's links in Divi

If we want difference or distinguish only a link we can do it.

  1. Navigate to “Appearance” / “Menus” and select our menu.
  2. Click on “Screen Options” and activate “CSS Classes”. You’ll find this menu in the upper right.
divi change link color Activate the class options in WordPress's menu

3. Add a class name to the link that you want. Click to “Save”.

Add a class in a link of WordPress

4. Go to “Divi Theme Customizer” / “Aditional CSS” and add this code. Important, you need to use the same class as before:

#top-menu .my-shop a{
	color:purple /* Change this value for the color that you want */
}


Change the background for the submenu link in Divi

By default, Divi applies a gray background in the links of our submenus. We can remove or edit it with CSS too.

Submenu color link in Divi
#top-menu li li a:hover{
	background:yellow;
}

The result:

How to change the background of the submenu link in Divi

How to change the color of menu’s links in Divi

In conclusion, Divi is a powerful tool but knowing CSS gives us more freedom and control for customizing our designs.

Do you like this content? Subscribe to our newsletter and be the first to receive the new posts in your inbox!

Divi change link color | Destaca Divi themes experts

Find everything you need to create with Divi

Divi plugins | Divi Themes | Divi Layouts

At Destaca Imagen, we bring your ideas to life with Divi. We create unique DIVI templates that transform your website into a visual and functional experience, tailored to your needs. Give your project the boost it deserves with our innovative and fully customizable designs. The future of your website starts here!

About Destaca Imagen

CHEMA & ANTO

We are brothers. As a designer and developer, we have decided have to join forces  to create plugins and themes for WordPress.

 

¡Apuntate a nuestra lista!

Los mejores trucos y tutoriales para Divi y WordPress en tu bandeja de entrada

Join our list!

The best tricks and tutorials about Divi in your inbox

On our shop

En nuestra tienda

Suscribe

The best tricks and tutorials about Divi in your inbox

Apúntate a nuestra lista

Los mejores trucos y tutoriales para Divi en tu email

También te podría gustar:

You may also like

How to Add a YouTube Link to my Divi Footer (Step by Step)

How to Add a YouTube Link to my Divi Footer (Step by Step)

Do you have a YouTube channel and want to give it more visibility from your website? If you're using the Divi theme, you can easily add a link to your channel or a specific video in the footer. In this guide, we’ll walk you through how to add a youtube link to my divi...

Best Website Templates for Photographers in 2025

Best Website Templates for Photographers in 2025

In today’s digital world, where image is everything, your website is often the first impression potential clients get of you. That’s why the way you present your portfolio can make the difference between standing out or going unnoticed. Today, we’re talking about...

How to change footer credits in Divi

How to change footer credits in Divi

When we design a website with Divi, we want every detail to reflect our brand, even the footer. However, by default, Divi includes credits like "Designed by Elegant Themes | Powered by WordPress" which, while correct, don't always fit the identity of each project. The...

How to Create and Customize a Login Page with Divi

How to Create and Customize a Login Page with Divi

Creating a custo login page with Divi is one of the most effective ways to strengthen the branding of a WordPress website. If you use the Divi theme and you're in luck: not only can you design it visually with the builder, but you also have at your disposal...

Divi blog templates, discover our template packs

Divi blog templates, discover our template packs

The Divi blog is the perfect solution. This Divi blog template pack has been developed to take full advantage of Elegant Themes' visual builder, facilitating customization without the need for programming skills. Discover how these Divi themes can transform your blog...

0 Comments

Submit a Comment

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

Get 5€ Off now!

Register now and get free coupon code.

 Register Now
Select currency
Euro
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.