Best way to customise the formatting of the link text?

I didn’t get this solution to work for me. Are you adding this to the theme’s custom CSS?