Tagged: , ,

Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • #1469349

    Hello,

    I found a previous post about this and the person wrote they found the follow as a solution.

    /* LINK UNDERLINE */

    .avia-buttonrow-wrap a.avia-button {
    text-decoration: none !important;
    }

    I added this to my quick CSS section and it does not work. Can anyone explain why?

    C

    #1469358

    Hey ScatmanAT,

    Thank you for the inquiry.

    The button text should not be underlined by default. Where can we see this issue? Please provide the page URL in the private field.

    Best regards,
    Ismael

    #1469417

    Ismael,

    See Link

    C

    #1469428

    Hi,

    You have this added in your child theme:

    .main_color a {
      text-decoration: underline !important;
    }

    Please try removing it, change the selector, or remove the !important part.

    Best regards,
    Rikard

    #1469447

    Rikard,

    That works but now all link don’t have underlines. I still want links within text to be underlined.

    C

    #1469462

    Hi,

    Did you try without !important? If that didn’t work, then try the :not pseudo class: https://www.w3schools.com/cssref/sel_not.php

    Best regards,
    Rikard

    #1469471

    Rikard,

    This is what I have now:

    .main_color a { color: #f1f1f1; text-decoration: underline }
    .alternate_color a { color: #f1f1f1; text-decoration: underline !important;}

    C

    #1469472

    Hi,
    When I check your homepage I don’t see an underline on your buttons or links, I assume that you removed your above css, if not please due and use this css instead:

    #top a:where(:not(.wp-element-button,.avia-button)) {
        text-decoration: underline;
    }

    this is the result:
    Screen Shot 2024 10 19 at 4.11.30 PM

    Best regards,
    Mike

    #1469488

    Mike,
    I only got rid of the !important as Rikard suggested.

    Currently it looks like this:

    .main_color a { color: #f1f1f1; text-decoration: underline }
    .alternate_color a { color: #f1f1f1; text-decoration: underline !important;}

    Which line(s) are you suggesting I remove?

    C

    #1469508

    Hi,
    Please use this instead for the result in my screenshot:

    #top a:where(:not(.wp-element-button,.avia-button)) {
        text-decoration: underline;
    }

    Best regards,
    Mike

    #1469522

    Mike,

    Which line(s) of code do I replace? one or both of the ones I posted?

    C

    #1469523

    Hi,

    Thank you for the update.

    You can remove both css rules and replace them with the code @Mike provided above:

    .main_color a { color: #f1f1f1; text-decoration: underline }
    .alternate_color a { color: #f1f1f1; text-decoration: underline !important;}
    

    Use this if you need to adjust the text color:

    #top a:where(:not(.wp-element-button,.avia-button)) {
        text-decoration: underline;
        color: #f1f1f1 !important;
    }
    

    Best regards,
    Ismael

    #1469557

    Thanks guys. It seems to be correct now.

    C

    #1469560

    Guys,

    I notice that when I hover over links now, the color doesn’t change list it did before. How can I fix that as a result of the fix you gave me for the underline?

    C

    #1469570

    Hi,
    Please add this css, and also keep the css Ismael posted:

    #top a:hover:where(:not(.wp-element-button,.avia-button)) {
        text-decoration: underline;
        color: #d97d1a!important;
    }

    Best regards,
    Mike

Viewing 15 posts - 1 through 15 (of 15 total)
  • You must be logged in to reply to this topic.