Topics: Writing themes
Mar 13, 2013 at 6:48 PM
I know @Html.ItemDisplayLink(T("Read More").ToString(), contentItem) is the way links are added to the blog post list. Is there a way to add a css class to this link? I've tried a bunch of different thing and none of it works ie @Html.ItemDisplayLink(T("Read More", new { @class = "read_more pull-right" }).ToString(), contentItem).
Mar 13, 2013 at 9:41 PM
Use a plain link tag instead, this way you can specify classes or anything else you need, and use ItemDisplayUrl as the href.
Mar 14, 2013 at 2:50 PM
Ahh why didn't I think about that! I ended up adjusting my css and put a span around the Html.ItemDisplayLink and I got the desired result.