Underline Subcategory links in CategoryGridPage

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
User avatar
ajasko
Lieutenant (LT)
Lieutenant (LT)
Posts: 53
Joined: Sun Sep 23, 2007 8:04 pm
Contact:

Underline Subcategory links in CategoryGridPage

Post by ajasko » Wed Sep 17, 2008 4:19 pm

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?

Image

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: Underline Subcategory links in CategoryGridPage

Post by mazhar » Wed Sep 17, 2008 10:36 pm

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;
}

Post Reply