Jump to content

.header code shwoing up for a few seconds when loading website

Recommended Posts

Hi, my website is showing a annoying .header code whe loading can anyone help me so it does not show please.

Here is the code 

.header {position: relative; z-index: 2; width: 100%; box- sizing: border-box; padding-top: 30px;!important padding- bottom: 30px; limportant padding-left: 4vw; padding-right: 4vw; pointer-events: auto;}

 

Also attached a image to show you.
Link to website https://shorturl.at/fwMQZ

Thanks

WhatsApp Image 2023-08-23 at 15.49.20.jpeg

Link to comment
  • Replies 1
  • Views 1k
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted Images

It looks like you are adding style code to the header code injection without style tags, so it is being rendered as plain text in the header.

You can fix this in one of two ways, either add the style code to Custom CSS, or add style tags around the styling code in the header like this:

<style>
.header {position: relative; z-index: 2; width: 100%; box- sizing: border-box; padding-top: 30px;!important padding- bottom: 30px; limportant padding-left: 4vw; padding-right: 4vw; pointer-events: auto;}
</style>
Edited by Ziggy

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 
Hire me on Upwork!

📈 SEO Space (Referral link)
Ⓜ️ 
Will Myers' Plugins & Tutorials (Referral link)
 🔌 Ghost Squarespace Plugins (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲SQSP Themes (Referral link) 
Spark Plugin (Referral link) 
 🖼️Pinch-to-Zoom Gallery Lightbox Plugin (Referral link) 

 Did I help? Buy me a coffee?

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.