Add shortcode of site reviews bugs my .js file

This is happening because you have added the following custom javascript to your website:

document.querySelector('.glsr') && document.querySelector('#give-reviews').addEventListener('click', (e=>{
    let t = document.querySelector('form.glsr-review-form');
    t.style.maxHeight = t.scrollHeight + 90 + 'px',
    t.style.paddingTop = '45px',
    t.style.paddingBottom = '45px'
}))

The document.querySelector('#give-reviews') part is looking for an element on the page with an id of #give-reviews which does not exist. Since it doesn’t exist, it’s throwing an error causing other scripts on the page to break.

You should do something like this instead:

let reviewsEl = document.querySelector('#give-reviews');
if (reviewsEl) {
   reviewsEl.addEventListener('click', (ev) => {});
}

Alternatively, you could just do this with CSS:

form.glsr-review-form {
    box-sizing: border-box;
    padding-top: 45px;
    padding-bottom: 45px;
}

Ho my !
Didn’t even see that… So sorry to bothered you for that I was on another thought …
Thanks a lot

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer