Jump to content

Pop-up box added with code is showing behind elements on home page

Recommended Posts

My client's site has a pop-up box that was added with the code 
<script src=https://training.paraphrasecomm.com/forms/2147615164/embed.js></script>

We recently upgraded the site to 7.1 and now the pop-up box is showing behind some elements on the home page. I tried several code options from ChatGBT which did not work like; 

<div id="custom-popup" style="position: fixed; z-index: 9999;"> <script src="https://training.paraphrasecomm.com/forms/2147615164/embed.js"></script> </div>


<script> // Create a new style element var customStyle = document.createElement('style'); // Set the style content with a high z-index customStyle.innerHTML = '#custom-popup { position: fixed; z-index: 9999; }'; // Append the style element to the head of the document document.head.appendChild(customStyle); </script> <div id="custom-popup"> <script src="https://training.paraphrasecomm.com/forms/2147615164/embed.js"></script> </div>

anything else we can try? 


Link to comment
  • Replies 3
  • Views 1.3k
  • Created
  • Last Reply

Top Posters In This Topic

  • 3 weeks later...

Where did you add popup code? Code Block, Code Injection or Page Header?

If Code Block/Embed Block, you can use this code to Website Tools > Custom CSS (however it still appears under Header, because we can't change z-index of this section > z-index of header)

[data-section-id="6581c02002632c6accb52de0"] {
    z-index: 9999999 !important;


You should add Popup code to Page Header Code Injection or Site wide Code Injection Footer, we can fix problem easier


Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.