Hi Community!
Does anyone know, how to remove these unnecessary DIV Elements (automatically generated by algolia Widgets)?
#div class="ais-RefinementList"
#div class="ais-RefinementList-list"
#div class="ais-RefinementList-item"
#div
I don’t need all of them!
(I Know: I already created my custom Widget doing this well, without putting any unnecessary DIVS, but there are other problems with it. So i have to use this regular variant now)
$menus['one']=instantsearch.widgets.refinementList({
cssClasses: {
count: 'd-none',
},
templates: {
item(item, { html }) {
const { url, label, count, isRefined } = item;
return html`
<a href="${url}" style="${isRefined ? 'font-weight: bold' : ''}">
<span>${label} (${count})</span>
</a>
`;
},
}})