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
  • 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 

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

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

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

 Did I help? Buy me a coffee?

Link to comment
  • Solution

You try access this link: www.chaletadventure.com/config/safe

It will disable code on edit mode, then you can edit everything easier

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

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

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.