Reviews: How to show floating badge with a delay on page

Want your floating Reviews badge to appear on the page only after a certain period of time? We’ve got a solution!

Just add this script to the Custom JS field on the Style tab of your widget’s settings and you’ll be fine: :slightly_smiling_face:

const DELAY = 60000;
const style = document.createElement('style');
style.innerHTML = `
  .es-badge-container{ display: none !important; }
`;
document.head.append(style);
setTimeout(function () {
  style.remove();
}, DELAY);

Note: The delay is set in milliseconds in the 1st line of the code


Guys, was this solution helpful to you? Let us know in the comments below :backhand_index_pointing_down:

3 Likes