How to remove links from tags

Posted in: Newspaper
Post count: 51

How to remove links from tags?
I would like the tags to have no links, just tags.

Post count: 20688

Hi,

If you are referring to the tags in the post page
https://www.screencast.com/t/9BaRW3o0
There could be a solution. It would also depend, if you want the actual links removed from the code, or simply not allow users to click on the tags. If you want to remove any interaction with the tags (including clicking) you could use something like this code.
Enter this code in Theme panel->Custom CSS

.td-post-source-tags {
pointer-events: none;
}

Thanks

Post count: 51

Shaking with CSS for me is not enough.
In fact, the idea of removing the links from the tags would be to decrease the juice of the page being diluted to these tags.
So how do I remove the link or at least add the “rel = nofollow” attribute?

And thanks for the response, I’m grateful to take your time. 🙂

Post count: 51

I’ve changed a line of code, is this allowed?
in the get_the_tags () function, in the file: td_module_single_base.php

worked for me, I added rel = “nofollow”

Post count: 20688

Yes that is allowed, I should have given you this alternative as well. Add the nofollow attribute to the link as you mention in that file
https://www.screencast.com/t/nmTeG75t
The file can be modified in the child theme as well
https://forum.tagdiv.com/the-child-theme-support-tutorial/

Viewing 5 posts - 1 through 5 (of 5 total)
The forum ‘Newspaper’ is closed to new topics and replies.