Does anyone know how to make it so all links are underlined via quick code?

[ad_1]

Hi! I'm trying to figure out how to make it so all of the links on my website are underlined. All of them besides the Table of Contents links that go to a different part of the page. I saw somewhere online where they said to add the following code, but I've tried to add it in the header and footer with no luck.

a { text-decoration: underline; }

[ad_2]
4 Comments
  1. You likely need to add more specificity to the rule, as the theme would already be declaring a rule for ‘a’. (don’t use !important – that’s not the right way to write CSS)

    Use DevTools to inspect the css that’s being applied and create a rule to override it. If you don’t know what that means, share your url a I’ll create one for you.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer