Jump to content

Code injection panel causing issue and preventing social links from displaying

Go to solution Solved by creedon,

Recommended Posts

Hi, I need a second pair of eyes on my site code injection. It seems that the code I have added to the code injection panel is causing an issue on my site and preventing the social links block from displaying. @tuanphan are you able to assist? 

Screenshot 2024-08-13 at 10.10.30 AM.png

Screenshot 2024-08-13 at 10.10.44 AM.png

Link to comment

Two things to try.

First. Please see the following.

Second. Please post the URL for a page on your site where we can see your issue. For us to see the URL you need to include the link in the content of your post. The URL field the forum software provides is not shown to us.

A link to the backend of the your site won’t work for us, i.e. a URL that contains /config/.

Please set up a site-wide password, if your site is not public and you've not already done so.

Post the password here.

Adding a site-wide password does not allow anyone to alter your site. It only allows those with the password to see your site.

Please read the site-wide password and how to share a link documentation to understand how they work.

You may find How to post a forum question post useful.

We can then take a look at your issue.

 

Edited by creedon

Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects.

Link to comment
  • Solution

The issue is in Website > Pages > Website Tools > Code Injection > FOOTER. The following code is missing a closing </style>.

<style>
 div.events-item-wrapper .image-block figure {
    max-width: 100% !important;
}
  div.events-item-wrapper .image-block {
    padding: 0 !important;
}
div.events-item-wrapper .has-aspect-ratio{
  padding-bottom: 30% !important;
}

It should be.

<style>
 div.events-item-wrapper .image-block figure {
    max-width: 100% !important;
}
  div.events-item-wrapper .image-block {
    padding: 0 !important;
}
div.events-item-wrapper .has-aspect-ratio{
  padding-bottom: 30% !important;
}
</style>

Let us know how it goes.
  

Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects.

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.