Hi all

I'm using a view which I have setup to remove html and row classes, though when I view the code I'm still seeing a empty class added to the li's.

<li class>Some text</li>

Is there a easy way to remove these?

Thanks
Barry

Comments

computerbarry’s picture

For anybody interested having the same issue, I fixed it by making a change inside my...

views-view-list.tpl.php

-<li class="<?php print $classes_array[$id]; ?>"><?php print $row; ?></li>
+<li<?php if ($classes_array[$id]) { print ' class="' . $classes_array[$id] .'"'; } ?>><?php print $row; ?></li>

It would be nice if we didn't have to apply a patch, though for now this works ok.

Reference: https://www.drupal.org/node/2206017

Barry

The more you learn.... the more you learn there is more to learn.