Jump to content

Title over background video - custom code fix

Recommended Posts

Site URL: https://www.richtr.io/


I had a title hovering over the video in a banner box on my homepage and somehow it disappeared, not sure how. 

It was originally placed there by an agency that custom coded a lot of the site. Now the title is gone and has been replaced with the Company name and will only render as transparent. The banner box is still visible when trying to edit although I cant see anything in the box. I checked the code and its set to display as white text. there must be another issue with the code but I cant figure it out.

Can anyone help?


Link to comment
  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Hey @JamesGraham303,

Looks like there's a missing </script> tag in your custom code.

From the main Squarespace editor, navigate to Settings > Advanced > Code Injection. Scroll down to the Footer Injection, and find a bit of code that looks like this:

window.onload = showHeroText();

<!-- Start of HubSpot Embed Code -->

You'll want to edit it to look like this:

window.onload = showHeroText();

<!-- Start of HubSpot Embed Code -->

This closes out the script that makes the banner text work before moving on to start the HubSpot script.

Hope this helps!

Hey, I’m Tyler. 👋 I’ve been a professional Squarespace user since 2016. I’m a recovering startup founder, currently on sabbatical after selling my Squarespace business. I now spend my free time working on weird side projects and half-baked ideas.

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.