简体   繁体   中英

WordPress / Avada Theme: How to globally change link style?

I like the link style used by wired.com ( example ). Basically, the links are underlined in the theme color, and become "highlighted" in the same color when hovering.

I was wondering how I would go about applying the CSS for something like that with the Avada theme? That is, where exactly would I put the CSS so that it affects the content of all pages/posts, while also respecting the theme color set in the theme options?

Thanks!

You can either search Avada's stylesheet (style.css) for a tags and modify the CSS

OR

You can add your own CSS and use !important for every property

For the links within the actual text (and not globally, with every button and icon all together) it worked for me to add the custom CSS like this:

a {
  text-decoration: underline;
}

But it also included all titles, so its not perfect

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM