Add a class and a span to all links in articles
-
On my site: https://marketing-constructii.ro/ i want and would love to have the 3D Rolling Links css trick. The problem is that i don’t know know how to add a class to all
<a>
and a<span>
inside of it.In the end to look alright it should look like this
<a href="https://hbr.org/2009/04/how-toxic-colleagues-corrode-performance/ar/1/" class="roll" target="_blank"><span data-title="Harvard Business Review"> Harvard Business Review </span></a>
But only inside the article .. i mean the_content loop.
Any help is greatly appreciated. For now i can add the code manually but would love (and make sense) to be automatically coded whenever i add a link and post a new article.
- The topic ‘Add a class and a span to all links in articles’ is closed to new replies.