

That tells the browser to give your rule more importance than rules that don't use the !important flag.
-1.gif)
I don't like to overuse this, but if you're at your wits end, it can sometimes save you. So, if your theme has a rule that's very specific, you'll have to be as specific or more to get your rule to take over.Īnother option is to use the !important declarative on your custom rule. Keep in mind that the more specific a rule in CSS the more likely it is to get carried forward.

****** then put this in your custom ******/ class on the "a" element that is using text-decoration, then just set a matching rule in your custom CSS that turns off the text-decoration.įor example, if you find that the theme CSS is using a.underlined-link as a selector to set text-decoration: underline then put a matching rule in your custom CSS that turns it off.

Use that to inspect the link you are having issues with and see what styles are set that might be setting the text-decoration property. The issue is going to be if your theme has more specific styling rules set, you'll have to figure out what's causing the underline on the links you're having issues with and be sure to override that specific selector. Once it's installed, do like mentioned before. Once that's installed you can add your own CSS that will get loaded after the theme's CSS files so you can override any styles set in whatever theme you are using. … How to remove gaps between HTML table rows and table cells.I'd recommend installing the Simple Custom CSS plugin to your Wordpress site. How to add a value to a textarea in HTML? We can also manipulate other links in the same way: a:hover Īnd there we have it, links are highly customizable to represent changes in state. We can then just set the color of the link to anything we see fit You can remove the HTML link underline and change color using CSS properties text-decoration and color.text-decoration: none will remove the appearance of decorative lines of text.So in order to change this style we must change the CSS :visited pseudo class. Specifically, a purple link indicates that the link has already been visited. With this in mind, how can you remove an HTML purple link? A purple link can be removed by overriding the default link styles in CSS. Having a purple link will frequently contrast with the style of the section that it resides in. The color of a link should adhere to the existing color scheme on the website. When dealing with links on a webpage, ideally we want to avoid having them look unsightly. How to remove HTML purple link – An Easy Solution
