Jump to content

Custom Fonts not working AND deleted some CSS code for 'Image Block Poster' - can anybody help?

Recommended Posts

Hey there,

www.sophielake.co.uk

I am not in any way shape a coder but I have used CSS before with squarespace. I just wanted to add in some custom CSS to create custom fonts and I added some by following an article online of which you can see the code below. Only it doesn't work! 
I can see from previous discussions that cutom fonts haven't been working for a lot of people but I just wondered if someone could look at the code and make sure everything is correct please.
 

I also think in the process I have accidentally deleted some CSS code that was already in the box. This code would make the text on my Image Blocks set at 'Poster' appear upon Hover but now it is no longer doing that so I think i've messed it up! It says I am "missing opening {" but I have no idea where.

Can anybody help?

Thanks!

Screenshot 2024-03-13 at 17.38.00.png

Screenshot 2024-03-13 at 18.12.41.png

Edited by Lakey
Link to comment

Did a developer work on your site? Can you ask him if he has a local copy of the code?

Link to comment

Add all the CSS code here to review it 

Link to comment

@Lakey  This should be easy enough to fix! Once we do, I recommend that you copy / paste your CSS into a document for safe keeping. 

Initial thoughts:

  • The text that says missing opening '{' shows an error in the code and when that happens, the rest of the code may not work. From what I can see, your custom font should display correctly once we fix that issue. 
  • There was definitely something deleted above the code I've highlighted in the box below. This is the source of the error. 

Delete the code in the box and replace it with:

.design-layout-poster .image-card-wrapper {
  visibility: hidden;
  opacity: 0;
  transition-duration: 0.5s;
}

Screenshot2024-03-13at11_28_14AM.thumb.png.992948254823decfce76b54ded39729f.png

 

Edited by WCS

Did we help? Click 👍 or mark it as the solution! This helps others find the answers they need. 

Meghan, Owner of Westerly Creative Studio
🐋  We're a Bay Area creative force specializing in Squarespace & Branding Solutions
️  Donations to our
coffee fund help fuel our support
👩‍💻  Need to buy your website policies? Termageddon makes it easy.  
Get 10% off your first year! (< affiliate link)

Link to comment

Add all the CSS code here to review it and add the link to the site

Link to comment

@Lakey  Hmm let's try it again. I have a feeling there may be a small error as I've tested the code on my site. 

A couple starter questions:

  • Is the custom font working at least?
  • Are you on 7.0 or 7.1?
  • Where are the poser images on your site? Are they the homepage images?

Steps for replacing the code:

1. Keep this CSS

Screenshot2024-03-18at2_11_14PM.thumb.png.49eac55f22578be5f3579acbd13aa610.png

2. Delete this 

Screenshot2024-03-18at2_12_15PM.thumb.png.efdb98f6492406850bde3ca101a9d548.png

3. Copy / Paste this in:

.design-layout-poster .image-card-wrapper {
  visibility: hidden;
  opacity: 0;
  transition-duration: 0.5s;
}

.design-layout-poster:hover .image-card-wrapper {
  visibility: visible;
  opacity: 1;
  background-color: green;
}

4. Save, exit the CSS box, refresh the page, and then see if the offer effect works. 

This is what it looked like when I tested it out (and hovered over it):

Screenshot2024-03-18at2_14_17PM.thumb.png.4571a11e87ac7d76b619b51297c8e285.png

5. Change "green" to the hex code you want it to be. Click save again. 

6. If that doesn't work, please copy and paste ALL your code in (no images) so that we can take a look at it. 

Please make sure to tag us when responding.  😊 Otherwise, I probably won't see it. To tag someone, type @ and then their username. When it's in a black pill shape (like at the beginning of this post), then you know you've done it right.

Edited by WCS

Did we help? Click 👍 or mark it as the solution! This helps others find the answers they need. 

Meghan, Owner of Westerly Creative Studio
🐋  We're a Bay Area creative force specializing in Squarespace & Branding Solutions
️  Donations to our
coffee fund help fuel our support
👩‍💻  Need to buy your website policies? Termageddon makes it easy.  
Get 10% off your first year! (< affiliate link)

Link to comment

Hey! Thanks so much! I'll give it a go!

 

The font is not even showing now on the Poster image.

I'm using Squarespace 7.0 - do I need to upgrade??

Yes the Poster images are on my homepage. www.sophielake.co.uk

 

Sophie

Link to comment
On 3/22/2024 at 6:55 PM, Lakey said:

Hey! Thanks so much! I'll give it a go!

 

The font is not even showing now on the Poster image.

I'm using Squarespace 7.0 - do I need to upgrade??

Yes the Poster images are on my homepage. www.sophielake.co.uk

 

Sophie

Don't remove any CSS code in your current code. Use this code to Custom CSS box

.design-layout-poster .image-card-wrapper {
    opacity: 1 !important;
    visibility: visible !important;
}

image.png.4bde845540dfd8deccdd7e3cac768b40.png

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

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

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.