Page 1 of 1
Underline Subcategory links in CategoryGridPage
Posted: Wed Sep 17, 2008 4:19 pm
by ajasko
I am trying to have ONLY the subcategory links on the Category Grid Page underlined, without changing any of the other links on the page. I am using the theme Glass_Aqua, and the css page stlye.css. I am having much more difficulty than anticipated. What code would I have to add to the CategoryGridPage and style.css in order to do this?

Re: Underline Subcategory links in CategoryGridPage
Posted: Wed Sep 17, 2008 10:36 pm
by mazhar
Locate the following line of code in
ConLib\CategoryGridPage.ascx file
Code: Select all
<ItemTemplate><asp:HyperLink ID="SubCategoryLink" runat="server" Text='<%#String.Format("{0} ({1})", Eval("Name"), Eval("ProductCount"))%>' NavigateUrl='<%#Eval("NavigateUrl")%>'></asp:HyperLink>
and make it look like
Code: Select all
<ItemTemplate><asp:HyperLink ID="SubCategoryLink" runat="server" Text='<%#String.Format("{0} ({1})", Eval("Name"), Eval("ProductCount"))%>' NavigateUrl='<%#Eval("NavigateUrl")%>' CssClass="CategoryLink"></asp:HyperLink>
Now edit your CSS file and add the following new style to CSS
Code: Select all
.CategoryLink
{
text-decoration:underline;
}