How to show underlines on links (anchors) on dynamic pages

Question:
Text fields in collections can be displayed in dynamic pages. If the text field contains a URL, WIX will automatically generate an anchor and HREF link. It will also add a “data-auto-recognition” property to these anchors. But to an end user the anchor appears without an underline, so it can be confusing and inconsisten with the way other links are displayed in other parts of the website.

Is there a way to display an underline for things that WIX identifies as a link with data-auto-recognition property? Alternatively is there a way to add CSS style to the page so the anchors appear the way out end users expect them?

Or is CSS not allowed at this point in time?

Product:
WIX Editor

What are you trying to achieve:
For text appearing on a dynamic page any links are displayed without an underline. We’re trying to get a consistent look and feel for all links

What have you already tried:
I’ve tried converting the text to Rich Content, but that just makes the link a dark blue color that we cannot change, and that isn’t very visible in our color scheme. I’ve tried velo code, but I don’t see how to modify the HTML of an object. I’ve tried inserting an HTML object above the text object in order to inject a style section for an “a” but it didn’t change anything.

Additional information:
Here’s an example page, with a hyperline near the bottom of the text area.

This is a great question. I’d probably go down the path of using Rich Content as you can choose the formatting options of the text (to include the underline). As for the specific colour, I believe this is determined by your site themes. I’d be sure to double check there :slight_smile:

Thanks Noah - That should work. But it looks like there’s a bug.

When use the Rich Content field on a Dynamic (Title) page and I connect that RC field to the data set, the editor picks the wrong field. Even though I’m telling it to connect the RC to the RC field in the dataset, it picks a reference field instead.

Alternatively, if someone could point out how and where to change hyperlink color and its underline for text items (not rich content) coming from a CMS dataset that would solve the problem as well. Hyperlinks in text items coming from a CMS are detected by WIX when it renders the page, and get automatically wrapped in an anchor tag. But there is no decoration or CSS on those auto generated tags. That’s what is leading me down this path.