Jump to content

Edit the font for only one web page

Go to solution Solved by Beyondspace,

Recommended Posts

  • goodchance changed the title to Edit the font for only one web page
  • Replies 6
  • Views 1.1k
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted Images

Posted
1 hour ago, goodchance said:

I'd like to edit the font to 'Hammersmith One' on just one of my website pages. I'd like to keep the same style, colour, etc. otherwise but would love some advice on how to amend just 1 page. Thank you!

https://www.goodchance.org.uk/
Specific webpage - https://www.goodchance.org.uk/fromhereon (password: GoodChanceGecko)

You can try the following Custom CSS to apply font for only one page

#collection-664483bff58a3f118ac44dd2 h1, 
#collection-664483bff58a3f118ac44dd2 h2, 
#collection-664483bff58a3f118ac44dd2 h3, 
#collection-664483bff58a3f118ac44dd2 p {
  font-family: 'Hammersmith One';
}

Let me know how it works on your site

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Pinch/Zoom images, videos - PDFs Lightbox - ...) </>  🗓️ Delivery Date Picker (Date picker form field)
Gallery block 7.1 workaround </> 🤖 Ask me anything

Posted
10 minutes ago, Beyondspace said:

You can try the following Custom CSS to apply font for only one page

#collection-664483bff58a3f118ac44dd2 h1, 
#collection-664483bff58a3f118ac44dd2 h2, 
#collection-664483bff58a3f118ac44dd2 h3, 
#collection-664483bff58a3f118ac44dd2 p {
  font-family: 'Hammersmith One';
}

Let me know how it works on your site

Thank you for responding! There seems to be a change, but not to the right font. Link here: https://fonts.google.com/specimen/Hammersmith+One

Posted
2 minutes ago, goodchance said:

Thank you for responding! There seems to be a change, but not to the right font. Link here: https://fonts.google.com/specimen/Hammersmith+One

Install the Google font with

@font-face {   
  font-family: 'Hammersmith One';   
  src: url('https://fonts.googleapis.com/css2?family=Hammersmith+One&display=swap');
}

 

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Pinch/Zoom images, videos - PDFs Lightbox - ...) </>  🗓️ Delivery Date Picker (Date picker form field)
Gallery block 7.1 workaround </> 🤖 Ask me anything

Posted

Thanks again. I tried this code and also tried uploading the font and using that URL but it says theres a syntax error on the @font-face line (see screenshot)

Screenshot 2024-06-05 at 15.42.39.png

  • Solution
Posted (edited)

Try this

@font-face {   
  font-family: 'Hammersmith One';   
  src: url('your font url');
}

#collection-664483bff58a3f118ac44dd2 h1, 
#collection-664483bff58a3f118ac44dd2 h2, 
#collection-664483bff58a3f118ac44dd2 h3, 
#collection-664483bff58a3f118ac44dd2 p {
  font-family: 'Hammersmith One';
}

 

Edited by Beyondspace

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Pinch/Zoom images, videos - PDFs Lightbox - ...) </>  🗓️ Delivery Date Picker (Date picker form field)
Gallery block 7.1 workaround </> 🤖 Ask me anything

Posted
5 minutes ago, Beyondspace said:

Try this

@font-face {   
  font-family: 'Hammersmith One';   
  src: url('your font url');
}

#collection-664483bff58a3f118ac44dd2 h1, 
#collection-664483bff58a3f118ac44dd2 h2, 
#collection-664483bff58a3f118ac44dd2 h3, 
#collection-664483bff58a3f118ac44dd2 p {
  font-family: 'Hammersmith One';
}

 

This worked! Thank you so much.

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.