SOLVED: Basic text as dynamic data get's styling removed after "Link to" applied

Bricks Version: latest
Browser: Chrome 90
OS: Win
URL: https://kamilp1.sg-host.com/project/well-optimized-wp-website-for-the-nail-studio-in-kosice-slovakia/

Strange behavior to me: I have a “Basic text” element which pulls up dynamic data (tag category) and I have it styled (color, transform, …) When I apply a link to it with the “Link to” it removes the styling on the front end (it’s OK in the editor…) plus the link doesn’t work…

Am I just not knowing what I am doing?

https://www.loom.com/share/f633179bae134fb9a0933112929f96e7

Hi Kamil,
Thanks so much for your report!

{post_terms_category} returns the category as a link, and a link in a link doesn’t work :wink:

Best regards,
timmse

Any time. Glad I could help with squashing a bug.

Hi Stefan,

Just on this, is there a way to bring in the post terms category without it being a link, just the text?

Thanks

Mick

Sure, there is a filter:

Alternatively, you can write a custom function that returns the categories without a link and call it with {echo:yourFunction}.

Hi @timmse,

looks like the hook has some problem? I’ve tried to disable links like described, but it isn’t working.

Tobias

Found it. For ACF taxonomy fields you have to add:

add_filter( 'bricks/acf/taxonomy/show_as_link', '__return_false' );`
1 Like