Last active
October 4, 2022 15:41
-
-
Save tomasherudek/02ed59baa6dd6b610f648dfc549de0bf to your computer and use it in GitHub Desktop.
How to change WordPress Link color > https://tomherudek.com/wordpress-change-link-color/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/**********************************************/ | |
/* GENERAL LINK COLOR | |
/**********************************************/ | |
/** DEFAULT STATE **/ | |
a { | |
color: #ff0000 !important; /** RED **/ | |
} | |
/** HOVER STATE **/ | |
a:hover { | |
color: #0000ff !important; /** BLUE **/ | |
} | |
/** VISITED STATE **/ | |
a:visited { | |
color: #00ff00 !important; /** GREEN */ | |
} | |
/** ACTIVE (CLICKED) STATE **/ | |
a:active { | |
color: #ffc0cb !important; /** PINK **/ | |
} | |
/**********************************************/ | |
/* ALL NAVIGATION LINK COLOR | |
/**********************************************/ | |
/** DEFAULT STATE **/ | |
ul.nav a { | |
color: #ff0000 !important; /** RED **/ | |
} | |
/** HOVER STATE **/ | |
ul.nav a:hover { | |
color: #0000ff !important; /** BLUE **/ | |
} | |
/** VISITED STATE **/ | |
ul.nav a:visited { | |
color: #00ff00 !important; /** GREEN */ | |
} | |
/** ACTIVE (CLICKED) STATE **/ | |
ul.nav a:active { | |
color: #ffc0cb !important; /** PINK **/ | |
} | |
/**********************************************/ | |
/* SPECIFIC NAVIGATION LINK COLOR | |
/**********************************************/ | |
/** DEFAULT STATE **/ | |
#top-menu a { | |
color: #ff0000 !important; /** RED **/ | |
} | |
/** HOVER STATE **/ | |
#top-menu a:hover { | |
color: #0000ff !important; /** BLUE **/ | |
} | |
/** VISITED STATE **/ | |
#top-menu a:visited { | |
color: #00ff00 !important; /** GREEN */ | |
} | |
/** ACTIVE (CLICKED) STATE **/ | |
#top-menua:active { | |
color: #ffc0cb !important; /** PINK **/ | |
} | |
/**********************************************/ | |
/* POST TITLE LINK COLOR | |
/**********************************************/ | |
/** DEFAULT STATE **/ | |
.entry-title a { | |
color: #ff0000 !important; /** RED **/ | |
} | |
/** HOVER STATE **/ | |
.entry-title a:hover { | |
color: #0000ff !important; /** BLUE **/ | |
} | |
/** VISITED STATE **/ | |
.entry-title a:visited { | |
color: #00ff00 !important; /** GREEN */ | |
} | |
/** ACTIVE (CLICKED) STATE **/ | |
.entry-title a:active { | |
color: #ffc0cb !important; /** PINK **/ | |
} | |
/**********************************************/ | |
/* POST CONTENT LINK COLOR | |
/**********************************************/ | |
/** DEFAULT STATE **/ | |
.entry-content a, .post-content a { | |
color: #ff0000 !important; /** RED **/ | |
} | |
/** HOVER STATE **/ | |
.entry-content a:hover, .post-content a:hover { | |
color: #0000ff !important; /** BLUE **/ | |
} | |
/** VISITED STATE **/ | |
.entry-content a:visited, .post-content a:visited { | |
color: #00ff00 !important; /** GREEN */ | |
} | |
/** ACTIVE (CLICKED) STATE **/ | |
.entry-content a:active, .post-content a:active { | |
color: #ffc0cb !important; /** PINK **/ | |
} | |
/**********************************************/ | |
/* READ MORE BUTTON LINK COLOR | |
/**********************************************/ | |
/** DEFAULT STATE **/ | |
.more-link a { | |
color: #ff0000 !important; /** RED **/ | |
} | |
/** HOVER STATE **/ | |
.more-link a:hover { | |
color: #0000ff !important; /** BLUE **/ | |
} | |
/** VISITED STATE **/ | |
.more-link a:visited { | |
color: #00ff00 !important; /** GREEN */ | |
} | |
/** ACTIVE (CLICKED) STATE **/ | |
.more-link a:active { | |
color: #ffc0cb !important; /** PINK **/ | |
} | |
/**********************************************/ | |
/* WIDGET & SIDEBAR LINK COLOR | |
/**********************************************/ | |
/** DEFAULT STATE **/ | |
.widget-area a, .widget a { | |
color: #ff0000 !important; /** RED **/ | |
} | |
/** HOVER STATE **/ | |
.widget-area a:hover, .widget a:hover { | |
color: #0000ff !important; /** BLUE **/ | |
} | |
/** VISITED STATE **/ | |
.widget-area a:visited, .widget a:visited { | |
color: #00ff00 !important; /** GREEN */ | |
} | |
/** ACTIVE (CLICKED) STATE **/ | |
.widget-area a:active, .widget a:active { | |
color: #ffc0cb !important; /** PINK **/ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment