WordPress.org

Ready to get started?Download WordPress

Forums

Remove text widget underline from Links (8 posts)

  1. bettyboo93
    Member
    Posted 1 year ago #

    Hello,
    I have a text widget that I am putting links into for various sites. When I'm linking to them the colour is changing and it underlines when you hover over it. How do I go about removing the underline & colour change? I'd just like my links to stay red and for the background of the links to change colour when the link is hovered over.
    My website is http://www.bettyvintage.com

  2. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    Your child theme stylesheet has all kinds of php code in it -- that's totally wrong -- start by removing all of that. If you are trying to customize your header, you need to make a copy of your header.php file from the parent theme, make changes in the copy --and put that file in your child theme.

  3. bettyboo93
    Member
    Posted 1 year ago #

    I've removed all that now, thanks! I'm not trying to customise my header I'm trying to customise my sidebar text widget to remove the underlines from the links. Thanks :)

  4. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    It's still there - make sure your cache is cleared. You won't be able to modify any CSS with all that errant code there.

    Don't know if it's that or something else, but your site never finishes loading...

  5. bettyboo93
    Member
    Posted 1 year ago #

    cleared the cache, still there? It's all clear on my front!

  6. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    Okay, good! The red text are not links - but the color is set in custom CSS - looks like from jetpack custom CSS?

    .entry p, .textwidget {
        color: red;
        font-size: 1.3em;
    }

    For links, try this CSS:

    .widget a {
        font-weight: bold;
        text-decoration: none;
        color: red;
    }
    
    .widget a:hover {
        font-weight: bold;
        text-decoration: none;
        color: red;
    }
  7. bettyboo93
    Member
    Posted 1 year ago #

    Yes sorry forgot to mention jetpack! That has worked - brilliant thank you so much!

  8. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    You're welcome - one thing to think about is that you may want to keep all of your CSS changes in one place -- either in jetpack custom OR the child theme CSS. Might be less confusing that way :).

Topic Closed

This topic has been closed to new replies.

About this Topic