Forums
Forums / Plugin: List category posts / custom class to tag
(@jdj)
6 years, 10 months ago
Hi
How do I add a custom CSS class to the AHREF link tags:
I tried using catlink_class=”myclass” parameters but that didn’t do it.
Thanks.
(@fernandobt)
You need to use the title_class parameter:
title_class
[catlist numberposts=5 title_class="lcp_title"]
Will generate this for each post:
<li> <a href="http://yourblog.com/hello-world" title="Hello world!" class="lcp_title"> Hello world! </a> </li>
The topic ‘custom class to tag’ is closed to new replies.