WordPress.org

Forums

[resolved] Change link color in footer widgets (8 posts)

  1. Marteens
    Member
    Posted 2 years ago #

    Hi.
    I am using the rumput-hijau-theme, and I want to change the color of my links in the footer widgets. How do I do that?

    I want it to be a different color for visited links aswell.

    Link to my site.

    Thank you!

  2. vtxyzzy
    Member
    Posted 2 years ago #

    You should create a Child theme to make your changes. If you do not, all of your changes will be lost if you update your theme.

    Try adding rules like these to the end of your child theme's style.css:

    #footer-sidebar a span { color: #FF0000 !important; }
    #footer-sidebar a:hover span { color: #00FF00 !important; }
    #footer-sidebar a:visited span { color: #0000FF !important; }
  3. Marteens
    Member
    Posted 2 years ago #

    Under

    themes >> rumput-hijau

    it already exists a "rumputhijau-child". And when i open it there is a "style.css"-file. Can I just use this file, or do I have to create my own child theme?

    Anyway I tried adding your code at the end of this file, but nothing happened at my site.

    By the way, what is the "hover"-part in the code? I have seen this many places, but I don't know what it means.

  4. Andrew
    Forum moderator
    Posted 2 years ago #

    It's not for us to teach CSS, consider CSS tutorials or CSS forums.

  5. vtxyzzy
    Member
    Posted 2 years ago #

    The child theme may already exist, but if it is not activated (the current theme) then changes there will have no effect.

    The 'hover' makes the rule only apply when the mouse pointer is 'hovered' over the link.

  6. Marteens
    Member
    Posted 2 years ago #

    Ok. Thank you very much, I'll see if I can work it out now.

    And thank you, Andrew, for the links. I will read up on that. I am very new to this homepage-world, so there are still many things for me to learn. I was not aware that I could not ask about CSS in this forum, I'm sorry.

  7. vtxyzzy
    Member
    Posted 2 years ago #

    Many, many of the questions asked in this forum deal with CSS, so feel free to ask.

  8. Marteens
    Member
    Posted 2 years ago #

    Ok, great! Thanks again, vtxyzzy, this has been very helpful!

Topic Closed

This topic has been closed to new replies.

About this Topic