Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #1084947

    Hi there,

    I am trying to change the mobile number font color above the main menu on the mobile version. On desktop, it is a transparent header with white font. However on mobile, the header is white and the telephone font remains white. How can I change it to be #76992a?

    Thanks!

    #1085076

    Hey tivo_designs,

    Try adding this css code in Quick CSS (located in Enfold > General Styling):

    <pre><code>@media only screen and (max-width:767px) {
    #top .phone-info span, 
    #top .phone-infor span a {
        color: #76992a;
      }
    }

    Best regards,
    Nikko

    #1086096

    Hi Nikko,

    Thanks for responding. That didn’t seem to work. I should also note that have this css code for when the number is on a transparent header:

    .av_header_transparency .phone-info a {
    color: white!important;
    }

    I’m not sure if this is interfering with what you sent me.

    #1086129

    Hi tivo_designs,

    I think I have made a mistake and include < pre > < code >, please just use this one:

    @media only screen and (max-width:767px) {
    #top .phone-info span, 
    #top .phone-infor span a {
        color: #76992a;
      }
    }

    Best regards,
    Nikko

    #1086139

    Unfortunately, it still isn’t working. I’ve provided my login below if you needed to take a look.

    #1086449

    Hi,

    This CSS is overriding what Nikko sent:

    .av_header_transparency .phone-info a {
        color: white!important;
    }

    It looks to be coming from a file from a caching or performance plugin.

    Best regards,
    Rikard

    #1087551

    Hi there,

    Yes, because the phone number is linked, I needed the font to remain white on a transparent header (otherwise, it switches to #eb952c as the default color for linked text). Therefore, I used :

    .av_header_transparency .phone-info a {
        color: white!important;
    }

    But now the phone number stays white on mobile where I need it to be #76992a. How do you suggest I fix this? At the end of the day, I need the phone number to be linked and still appear on a transparent header and white mobile header.

    Thanks!

    #1087771

    Hi tivo_designs,

    Try adding !important to the code I gave so it will not get overriden since it has a higher css selector priority:

    @media only screen and (max-width:767px) {
    #top .phone-info span, 
    #top .phone-infor span a {
        color: #76992a;
      }
    }

    Best regards,
    Nikko

    #1087774

    Ok! Where do I add !important in the code that you provided? Should I also adjust

    .av_header_transparency .phone-info a {
        color: white!important;
    }

    by deleting !important as well?

    Thank you

    #1088064

    Hi,
    I have adjusted your css for you so that for mobile your phone number will be green and for desktop it will be white:

    @media only screen and (max-width:767px) {
    #top .phone-info span, 
    #top .phone-info span a {
    color: #76992a !important;
    }
    }
    @media only screen and (min-width: 768px) { 
    .av_header_transparency .phone-info a {
        color: white !important; 
    }
    }
    

    Please clear your browser cache and check.

    Best regards,
    Mike

    #1088921

    This is great, thank you so much for the help!

    #1088993

    Hi,
    Glad we were able to help, we will close this now. Thank you for using Enfold.

    For your information, you can take a look at Enfold documentation here
    For any other questions or issues, feel free to start new threads under Enfold sub forum and we will gladly try to help you :)

    Best regards,
    Mike

Viewing 12 posts - 1 through 12 (of 12 total)
  • The topic ‘Change Phone Text Color on Mobile only’ is closed to new replies.