Tổng Bài đăng:
647
Karma:
6554
Đã tham gia:
14/09/2010
Vị trí:
United States
I am using nop 2.3. I would like to add an H1 tag to each category page with the each category name in it. I know I need to do it in Category.Template.ProductsInGridOrLines.cshtml, but I don't know what to put in between the h1 tag. Can someone please point me in the right direction? Thank you.
Tổng Bài đăng:
647
Karma:
6554
Đã tham gia:
14/09/2010
Vị trí:
United States
That worked thank you! FYI, it's: @Model.Name. The M and N have to be capitalized.
Tổng Bài đăng:
207
Karma:
1103
Đã tham gia:
04/10/2011
Vị trí:
United States
is this fix also applicable to 2.2?
Tổng Bài đăng:
207
Karma:
1103
Đã tham gia:
04/10/2011
Vị trí:
United States
my file doesn't have h1 referenced in it anywhere - couldja post a code example please?
Tổng Bài đăng:
1794
Karma:
14506
Đã tham gia:
07/10/2009
Vị trí:
United Kingdom
version 2.8 views/catalog/ CategoryTemplate.ProductsInGridOrLines.cshtml look for this ( line 68) <div class="page category-page"> @*uncomment to display title <div class="page-title"> <h1>@Model.Name</h1> </div> <div class="clear"> </div>*@ uncomment it <div class="page category-page"> @*uncomment to display title *@ <div class="page-title"> <h1>@Model.Name</h1> </div> <div class="clear"> </div>
Tổng Bài đăng:
409
Karma:
3215
Đã tham gia:
20/05/2012
Vị trí:
United Kingdom
And make sure you only have one <h1> per page!