Issues formating "more" link

Topics: Themes
Jun 21, 2012 at 12:05 AM

I'm trying to format the "more" link when you post the excerpt as a blog post.  I created a postview.ascx.cs and have managed to change the link.  The issue I have is I have a CSS class I want to use to format the style of the link.

 

So far I have this :

var link = " <a href=\"" + post.RelativeLink + "\" >
This is fine but when I go to add the style in I get compliation errors.  

Where so I put the style attribute.  I tried the following:

var link = " <a href=\"" + post.RelativeLink + "\" class="excerpt-link">
This doesn't seem to work.  Any help is appreicated. 
 
Coordinator
Jun 21, 2012 at 5:04 AM

I think it should be (warning, air code):

var link = " <a href=\"" + post.RelativeLink + "\" class=\"excerpt-link\">";
Jun 21, 2012 at 3:16 PM

Thanks for setting me on the right path.

Here is the correct syntax:

var link = " <a href=\"" + post.RelativeLink + "\" class=\"excerpt-link\"> Continue Reading </a>";