Did this and worked in 1.9 :
1. Add the showAllCategories parameter at the end of this method :
protected void CreateChildMenu(List<Category> breadCrumb, int rootCategoryId, Category currentCategory, int level, bool showAllCategories)
2. Add "true" to the end of this :
CreateChildMenu(breadCrumb, 0, currentCategory, 0, true ); // mp added true
3. Add the code below after the following code :
......................
link.HyperLink.Text = Server.HtmlEncode(catName);
if (padding > 0)
link.LiLeftMargin = padding.ToString(); // add the code below this part :
// ****************** ADD THIS CODE HERE :
if (showAllCategories)
{
// Show All Categories and their children
CreateChildMenu(breadCrumb, category.CategoryId, currentCategory, level, showAllCategories);
}
else
{
// Show only Selected Category children
for (int i = 0; i <= breadCrumb.Count - 1; i++)
if (breadCrumb[i].CategoryId == category.CategoryId)
CreateChildMenu(breadCrumb, category.CategoryId, currentCategory, level, showAllCategories);
}
// **************** and comment out this code :
//for (int i = 0; i <= breadCrumb.Count - 1; i++)
// if (breadCrumb[i].CategoryId == category.CategoryId)
// CreateChildMenu(breadCrumb, category.CategoryId, currentCategory, level);
How can I change the Font for the Main Category Name in the menu.
I want to make the font bigger for the Category Name, and have the sub-category items
have a smaller font.