# How to restyle the \<a\> element

**URL:** <https://forum.wixstudio.com/t/how-to-restyle-the-a-element/70053>\
**Category:** Ask the community\
**Tags:** wix-studio, code, question\
**Created:** [April 1, 2025, 8:22am UTC](https://forum.wixstudio.com/t/how-to-restyle-the-a-element/70053 "2025-04-01T08:22:12Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![user4197](https://avatars.discourse-cdn.com/v4/letter/u/dbc845/32.png) [@user4197](https://forum.wixstudio.com/u/user4197)\
**Post date:** [April 1, 2025, 8:22am UTC](https://forum.wixstudio.com/t/how-to-restyle-the-a-element/70053/1 "2025-04-01T08:22:12Z")

</div>

What is the best way to restyle the a tag throughout a Wix Studio site? I  
The product is: Wix Studio

I want to remove the underline, make it bold and change its color.

Should I use the Settings → Add custom code route, or is it best to use the global.css in coding mode?

---

<div class="post-metadata">

**Author:** ![user4197](https://avatars.discourse-cdn.com/v4/letter/u/dbc845/32.png) [@user4197](https://forum.wixstudio.com/u/user4197)\
**Post date:** [April 1, 2025, 9:04am UTC](https://forum.wixstudio.com/t/how-to-restyle-the-a-element/70053/2 "2025-04-01T09:04:54Z")

</div>

I have found the answer. Am using global.css and richt\_text a class to change the a link.  
But, the underline persists even though I have set text-decoration to none.  
How do I fix that?

---

<div class="post-metadata">

**Author:** ![DeanAyalon](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/deanayalon/32/94633_2.png) [@DeanAyalon](https://forum.wixstudio.com/u/DeanAyalon)\
**Post date:** [April 1, 2025, 10:03am UTC](https://forum.wixstudio.com/t/how-to-restyle-the-a-element/70053/3 "2025-04-01T10:03:05Z")

</div>

A. Inspect the elements on your site and look for the link’s styling, perhaps there are other styling rules overriding your `text-decoration: none`. If so, adding `!important` could help

B. Are you sure the CSS rules you’ve written are applied to your `<a>` elements? If not, try adding something like `color: red` just to see if it affects it

---

<div class="post-metadata">

**Author:** ![user4197](https://avatars.discourse-cdn.com/v4/letter/u/dbc845/32.png) [@user4197](https://forum.wixstudio.com/u/user4197)\
**Post date:** [April 1, 2025, 10:34am UTC](https://forum.wixstudio.com/t/how-to-restyle-the-a-element/70053/4 "2025-04-01T10:34:23Z")

</div>

A. You’re right - it’s now .rich-text\_\_text a and that works  
B. Right again - the a tag is wrapped in a span element with style=“text-decoration:underline”. This seems to be applied by Wix when you create a link. I can unset the Underline manually in the Inspector panel but I’d like to unset it by default.

---

<div class="post-metadata">

**Author:** ![user4197](https://avatars.discourse-cdn.com/v4/letter/u/dbc845/32.png) [@user4197](https://forum.wixstudio.com/u/user4197)\
**Post date:** [April 1, 2025, 1:27pm UTC](https://forum.wixstudio.com/t/how-to-restyle-the-a-element/70053/5 "2025-04-01T13:27:14Z")

</div>

Fixed underline by adding this to global.css

span[style] {  
text-decoration:none !important;  
}
