
Underline Subcategory links in CategoryGridPage
Underline Subcategory links in CategoryGridPage
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?


Andrew Jasko
http://www.telephonesystemsforbusiness.com
http://www.telephonesystemsforbusiness.com
Re: Underline Subcategory links in CategoryGridPage
Locate the following line of code in ConLib\CategoryGridPage.ascx file
and make it look like
Now edit your CSS file and add the following new style to CSS
Code: Select all
<ItemTemplate><asp:HyperLink ID="SubCategoryLink" runat="server" Text='<%#String.Format("{0} ({1})", Eval("Name"), Eval("ProductCount"))%>' NavigateUrl='<%#Eval("NavigateUrl")%>'></asp:HyperLink>
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>
Code: Select all
.CategoryLink
{
text-decoration:underline;
}