Commerce Product Collection View Block: What Determines CSS For Each Header Link? In Kickstart 2 there is a view called collection_products which displays a list of products in a given collection, grouped by category.

There is a header which uses a Block display to give anchor links to each Category Header on the page. The format of the fields is 'Unordered List' yet the fields are styled as

&lt;div&gt;&lt;h3&gt;&lt;a&gt; 


...not 

&lt;ul&gt;&lt;li&gt;&lt;a&gt;


...as I would like.

How do I change the generated styling of these? I've searched all over the view and can't find it.

HEAVY EDIT. Big Thanks to J. Reynolds!

The issue is that this view is actually a list of group headings. The reason it displays as it does is that it's showing a list of all categories... each as a 'Title'...
     

...for each category and then a -hidden- list of the products.

So it's not that each 'row' is being themed not as a list, but that what I -thought- was a 'row' is actually a 'title'. 

So: What I need to do is create an unordered list with the -title- of each category (the Grouping No. 1) as the actual li using each of these headings.

How do I do this?

BONUS: Is there a way to get Drupal to not even generate that hidden UL of products? It seems wasteful, not just for the client, but at the server.
It is the same as with any view: You have to override the view template. 

In your views UI click on 'Theme:information'. This will open up a dialog with views templates and suggestions. As the block is using grouping, you need to override the 'Style output' theme template: 

views-view-list.tpl.php


If you override that template it will override it for all views of HTML List format, so you now have to select a suggestion. Second in the list is:

views-view-list--collection-products.tpl.php


which will be fine.



Create a new file in your theme templates folder called

views-view-list--collection-products.tpl.php


Then click on the 'Style output' link back in the view theming information. It will open up a file and you copy everything from the 



Now you can edit that file to get the markup you want. You can take out the h3 tag for example and replace with a div.