1. PROMO Subscribe our All Access Pass @ 75% OFF & access all our 16+ premium Divi extensions: Divi Block Pro, Carousel Toolkit, etc.LEARN MORE
Dismiss Notice
NEW Divi.Help Pro Carousel AI Toolkit - Magically turn your Divi design into carousel, simply by using our online toolkit. No plugins needed. Now it works with Divi 5 as well!Try our carousel AI toolkit
BEST Divi Block - A revolutionary drag & drop tool to easily mix & match 960+ premade blocks (Light & Dark) to kick start your Divi site design. Special module designs are included as well. Also newly added AI generator & color. Now it works with Divi 5 as well!
Learn More About Divi BlockFree Version ~ 340+ Free Blocks

Trouble recoloring text for single nav menu link

Discussion in 'Free Divi Community Forum' started by tehmezdawg, Sep 12, 2021.

  1. tehmezdawg

    tehmezdawg New Member

    Hey guys,

    Hoping someone might be able to help me.

    I have created a nav menu in the global header and added a button to one of the links with the following code:
    .menu-cta a {
    background-color: #039572;
    padding: 15px 25px !important;
    border-radius: 25px;
    text-transform: uppercase;
    color: #ffffff !important;
    text-align: center;

    The problem is the color part of the code isn't working. When I load the website to check, it goes white for like half a second and changes black like the rest of the menu links. I want the text within the button to be white but having trouble figuring it out. Any advice is greatly appreciated!

    upload_2021-9-12_13-36-17.png
     
    1. PRO MEMBER PERKS Divi Block Pro - 30+ premade custom header designs for you to choose from:View Demo
  2. Divi.Help

    Divi.Help Administrator
    Staff Member

    Try this instead: #page-container .menu-cta a {