Skip to content
Snippets Groups Projects

Fix template to prevent icons from duplicating

1 file
+ 7
1
Compare changes
  • Side-by-side
  • Inline
@@ -35,7 +35,13 @@
{% for type in types.content %}
<div class="lpb-component-list__item type-{{type.id}}">
<a{{type.link_attributes.setAttribute('href',type.url)}}>
{% if type.image %}<img src="{{ type.image }}" alt=""/>
{% if type.image %}
<style>
.lpb-component-list__item.type-{{ type.id }} a::before {
background: url({{ type.image }});
background-size: cover;
}
</style>
{% endif %}
{{ type.label }}</a>
</div>
Loading