How to change text color for "separator with text" element using CSS

3 replies2 participantsUpdated by Rose Tyler

  • Avatar: malanepellico
    malanepellico
    Participant

    I am using the Separator with Text element, but the color in the dialog box only changes the color of the separator lines. How can I target the Text in the Separator with Text element to change the text color to white?

    3 Answers

    Avatar: Rose Tyler
    Rose Tyler
    Support staff

    Hello,

    You can add a custom class for the element and custom CSS code in Theme Options > Custom CSS.
    For example, http://prntscr.com/pkehih +

    .text-white {
        color: white;
    }

    Regards

    Avatar: malanepellico
    malanepellico
    Participant

    Hi Rose,
    I already tried that. It is just NOT working… I even tried:
    .text-white {
    color: white !important;
    }
    and it is still not working. Any other ideas on how to target the text in the “Separator with Text” element? You can see two of them on the home page of moonbowpublishing.com. They are currently dark grey text with white lines over a dark background image.

    Avatar: Rose Tyler
    Rose Tyler
    Support staff

    Hello,

    Please change the code to

    .text-white h4 {
        color: white;
    }

    Regards

Want to reply? Log in, or register with your ThemeForest purchase code, to reply to this topic.

Login / Register