This project is read-only.


Topics: Writing themes
Mar 13, 2013 at 7: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 10: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 3: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.