Hello guys, does anyone know the code to have a tab open rather than clicking on it for it to open? I have attached an example
try adding the js file:
let tbs_nodes = document.querySelectorAll(‘.product-block’);
for (let i = 0; i < tbs_nodes.length; i++) {
if (tbs_nodes[i].classList.contains(‘product-block–tab’)) {
tbs_nodes[i].querySelector(‘.collapsibles-wrapper > button’).classList.add(‘is-open’);
tbs_nodes[i].querySelector(‘.collapsibles-wrapper > div’).classList.add(‘is-open’);
break;
}
}
