Hi,
I feel that the link styling options in Pro are a bit limiting.
I’d like to only style the links in the body text, not menu’s footers, sidebars etc.
I’d also like to only style anchor links not Tel: or Mailto: as they are styled manually because they don’t occur very often on the site.
I really don’t want to have to add a custom class to everybody text link as that opens the site up to inconsistencies and errors.
What would say is the best way to apply a class just to href links in the body and exclude tel, mailto, header, footer, sidebar?
I’m using this currently.
/* unvisited link */
a:link {
color: rgb(84, 65, 194) !important;
border-bottom-style: solid !important;
border-bottom-color: rgba(84, 65, 194, 0.5) !important;
border-bottom-width: 1px !important;
}
/* mouse over link */
a:hover {
color: rgb(244, 67, 54) !important;
border-bottom-style: solid !important;
border-bottom-color: rgb(244, 67, 54) !important;
border-bottom-width: 1px !important;
}
/* selected link */
a:active {
color: rgb(84, 65, 194) !important;
border-bottom-style: solid !important;
border-bottom-color: rgb(84, 65, 194) !important;
border-bottom-width: 1px !important;
}
You can see the staging site here - https://wordpress-227779-902472.cloudwaysapps.com/
I’ve commented out the CSS on the staging site for now.
Thanks for your help.
Dan