Jump to content

Trying to customise font for an individual text block

Recommended Posts

Hi

I have a site wide defined font but wish to use a different font for a specific text block

The following is what I've attempted.

Downloaded font ( Algerian Regular ) and get a .ttf file.

Obtain block id of specific text block id using google plugin ( https://chromewebstore.google.com/detail/squarespace-id-finder/igjamfnifnkmecjidfbdipieoaeghcff )

Go to Custom CSS

Load Font

Enter following in CSS

@font-face { 
font-family: 'Algerian';
src: url(https://static1.squarespace.com/static/6314e82422945a1a6e7ecb2e/t/656b3708d0e90c712e0ed6d2/1701525256249/Algerian+Regular.ttf)
}

#block-yui_3_17_2_1_1701517608750_10889 * {font-family:Algerian}

Text font doesn't change

Anyone got an idea ?

Chris

Link to comment
  • Replies 3
  • Views 1.1k
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Hi @ChrisGreen your uploaded font name is 'Algerian' with single quotes, when you use it below, it's Algerian without quotes.

In your second code block, try this instead. Adding single quotes and semi-colon.

#block-yui_3_17_2_1_1701517608750_10889 * {
	font-family: 'Algerian';
}

Let me know how it goes. Refresh after saving.

If it doesn't work, please share your website URL.

-------- > 👆 <---------- Please quote or @ me when replying, or I won't get a notification 

Melody | Squarespace Website Developer
e: melody@melodylee.tech


💻 💁‍♀️ 1-2-1 Squarespace Training session <- feeling stuck and want to learn?
👩‍💻 💁‍♀️ Website help <- send me your to-do list. From code to plugin to domain setup.
 Did I help? I like coffee (Thank you)
🧰 See the tools I use (contain affiliate links)


 

Link to comment
17 hours ago, ChrisGreen said:

Nope didn't work.

Sorry can't share as it's a Members Only area containing personal data covered under Data Protection

Hard to guess without seeing what's going on. The other suggestion is to try reload your file in src url.

I can check to see if your custom file is loaded correctly, won't need access to your member area, just to any open page. Custom CSS is for your entire website, not page specific.

Edited by melody495

-------- > 👆 <---------- Please quote or @ me when replying, or I won't get a notification 

Melody | Squarespace Website Developer
e: melody@melodylee.tech


💻 💁‍♀️ 1-2-1 Squarespace Training session <- feeling stuck and want to learn?
👩‍💻 💁‍♀️ Website help <- send me your to-do list. From code to plugin to domain setup.
 Did I help? I like coffee (Thank you)
🧰 See the tools I use (contain affiliate links)


 

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.