The Fields component of the View editing UI has long names, especially when fields are implemented via relationships. Wrapping each individual element in spans allows for more targeting theming.
Before:
<a href="/admin/structure/views/nojs/config-item/bestselling_products/default/field/field_product_image" class="views-ajax-link views-ajax-processed-processed">
(Content entity referenced from field_commerce_product) Content: Product Image
</a>
After:
<a href="/admin/structure/views/nojs/config-item/bestselling_products/default/field/field_product_image" class="views-ajax-link views-ajax-processed-processed">
<span class="views-field-entity-type">Content:</span>
<span class="views-field-title">Product Image</span>
<span class="views-field-relationship">Content entity referenced from field_commerce_product</span>
</a>
Comments
Comment #1
cameron tod commentedCleaned up, should now only add spans when content is present.
Comment #2
Bcwald commentedWorks good, although the Patch does not affect fields under "Contextual filters" and "Relationships". For consistency, this should apply to these areas as well.
Comment #3
cameron tod commentedTouché
Comment #4
Bcwald commentedpatch in #3 does not work for me.
Comment #5
Bcwald commentedComment #6
cameron tod commentedLet's try again.
Comment #8
Bcwald commented