Forum Replies Created

Viewing 1 replies (of 1 total)
  • Thread Starter ianth007

    (@ianth007)

    That’s brilliant, thank you so much 🙂

    Whereabouts (file-wise etc.) would I put either of these solutions, please?

    I did add the

    document.addEventListener('DOMContentLoaded', function () {
        var floatlabels = document.querySelectorAll('.glsr-form .bgtfw-wrap-select');
        floatlabels.forEach(function (floatlabel) {
            if (floatlabel.querySelector('.glsr-star-rating')) {
                var fragment = document.createDocumentFragment();
                while (floatlabel.firstElementChild) {
                    var el = floatlabel.firstElementChild;
                    var classes = el.className.split(' ').filter(function (val) {
                        return 0 !== val.lastIndexOf('bgtfw-', 0);
                    });
                    el.className = classes.join(' ').trim();
                    fragment.appendChild(el);
                }
                floatlabel.parentElement.replaceChild(fragment, floatlabel);
            }
        });
    });

    to your ‘float-labels.js’ folder at line 37… but it didn’t seem to make any difference.
    Is there something else that I also need to do, please?

    Tried to attach a screenshot to show you where the folder is placed – but unfortunately can’t attach.

    Thank you for your help.

Viewing 1 replies (of 1 total)