Всего сообщений:
647
Карма:
6554
Присоединился:
14.09.2010
Страна:
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.
Всего сообщений:
647
Карма:
6554
Присоединился:
14.09.2010
Страна:
United States
That worked thank you! FYI, it's: @Model.Name. The M and N have to be capitalized.
Всего сообщений:
207
Карма:
1103
Присоединился:
04.10.2011
Страна:
United States
is this fix also applicable to 2.2?
Всего сообщений:
207
Карма:
1103
Присоединился:
04.10.2011
Страна:
United States
my file doesn't have h1 referenced in it anywhere - couldja post a code example please?
Всего сообщений:
1794
Карма:
14506
Присоединился:
07.10.2009
Страна:
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>
Всего сообщений:
409
Карма:
3215
Присоединился:
20.05.2012
Страна:
United Kingdom
And make sure you only have one <h1> per page!