Jump to content

custom code problem - site error

Go to solution Solved by tuanphan,

Recommended Posts

Hello. I have a general question for you.
I put some code in the header of my website. I absolutely need this code because I need to have Cookie Banner.

Unfortunately, the code makes an error on my website, because the blog entries on my main page are unfortunately not displayed, although there should be some.

Can you help me with that?

Link to comment
  • Replies 9
  • Views 345
  • Created
  • Last Reply

Top Posters In This Topic

Sounds like an error in the code you're adding, maybe an un-closed script, can you share the code and your website URL? Thanks!

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!

🔌 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲 SQSP Themes (Referral link) 
Spark Plugin (Referral link) 

 Did I help? Buy me a coffee?

Link to comment

Hi. I actually use a code in the header, but I absolutely need it because of the cookie tool.
Here is the link: www.chaletadventure.com
Here is the code:

<!DOCTYPE html>
<html>
<head>
 <script src="https://cdn.consentmanager.net/delivery/cookieblock.min.js" data-cmp-ab="1"></script>
 

<script type="text/javascript" data-cmp-ab="1" src="https://cdn.consentmanager.net/delivery/autoblocking/34e45db061e64.js" data-cmp-host="d.delivery.consentmanager.net" data-cmp-cdn="cdn.consentmanager.net" data-cmp-codesrc="1"></script>

Link to comment

You probably don't need these parts:

<!DOCTYPE html>
<html>
<head>

They aren't closed with </html></head> so that will cause a problem.

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!

🔌 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲 SQSP Themes (Referral link) 
Spark Plugin (Referral link) 

 Did I help? Buy me a coffee?

Link to comment

I don't see the problem:

image.thumb.png.06f9ebf2724b9d10011ef13ac6af8d65.png

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!

🔌 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲 SQSP Themes (Referral link) 
Spark Plugin (Referral link) 

 Did I help? Buy me a coffee?

Link to comment

The problem is only in the back end. But it's annoying because I can't edit the page properly when I want to change something, because I can't see half of the page because the error is here.

Link to comment

Sorry, there's not much I can do about that for you.

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!

🔌 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲 SQSP Themes (Referral link) 
Spark 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.