• Resolved alexzanutto

    (@alexzanutto)


    Hi everyone,
    I really like your theme, I just have a little bit of a problem. I have some links in a text widget I put in the sidebar. The default color is light blue, so I wrote this css to change the link color and eliminate the bottom border, and it works fine

    .textwidget a {
        border-bottom: none;
        color: #ea1a1a;
    }

    Then I wrote this code to change the hover color and the underline

    .textwidget a:hover {
        text-decoration: line-through;
        color: #ea1a1a;
    }

    the line through is working, the color is not changing from blue to red. What am I doing wrong?

    Thank you very much,
    A.

Viewing 4 replies - 1 through 4 (of 4 total)
  • stephencottontail

    (@stephencottontail)

    Can you post a link to your site?

    Thread Starter alexzanutto

    (@alexzanutto)

    I am developing on a local server, sorry.
    Anyway I added !important after the hex color value and it did the trick. I’d just like to know if there is a more proper way to do it.

    ashiquzzaman

    (@ashiquzzaman)

    @alexzanutto !important is convenient but try to avoid as you go along will save you headache in the future.

    Thread Starter alexzanutto

    (@alexzanutto)

    @ashiquzzaman I know, in fact I asked here in order to avoid it. All in all it is a good childtheme and I don’t need big things, so I’ll keep it like that I think.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘can't change hover link color’ is closed to new replies.