Jump to content

Changing the font of one section in Squarespace - HELP!

Recommended Posts

Hi y'all, I am hoping someone can help me with a seemingly simple edit that I cannot figure out. I am trying to change the font of a single section on a SquareSpace site using a Code Block. Here is a screenshot:490102411_ScreenShot2021-11-08at1_52_26PM.thumb.png.cb7a78cfdcefff0f696544c0d391f32c.png

I downloaded a div identifier, so that doesn't seem to be the issue. Still, the 'hey' text is showing up as Times New Roman. What am I doing wrong? I am super new to CSS/html coding (i.e. I am learning as I go) and I haven't been able to figure out how to fix this. Can someone please help?

Link to comment

Hello! Welcome to the community.

First off, you're well on your way to getting you're website looking like how you imagine it and it's awesome to see that you're taking a step to learn about customizing your website.

Couple of things to keep in mind:

1) When you're editing a block or a page, or even a section of your website. You'll do most of the editing in the Home > Design > Custom CSS tab.

2) You won't need to use a code block for editing pieces of your website with CSS that could otherwise be written in the Custom CSS tab.

3) When you're editing in the Custom CSS tab -- You won't need to use <style> tags in the menu at all 🙂 You just need to follow the following format with any variation of properties:

YOUR_BLOCK/SECTION_ID_HERE {
font-family: YOUR_FONT_NAME;
padding: YOUR_PADDING;
margin: YOUR_MARGINS;
background-color: YOUR_COLORS;
display: PICK_ONE_ONLY_ONE -> "Block // Flex // Inline-Block // Grid";
width: %,PX,EM,REM,VW
height:%,PX,EM,REM,VH
position: PICK_ONE_ONLY_ONE -> "Relative // Absolute // Fixed // Static";
font-size: %,PX,EM,REM
transform: Translate (x,y), Rotate(VALUE-deg), Scale(2), so much more...;
}

4) Try removing your code from the code-block and adding it to your Custom CSS menu and see if that makes a change. If not, feel free to message me or reply here with the URL and I'll do my best to clear up any confusion.

Don't give up!

 

 

Link to comment

Hey @bsturc you want to use a markdown block and not a code block. Markdown blocks also have a cheatsheet to a SQSP help page which shows you how to change this accordingly. If you are using a font that's not in SQSP library you will need to add it in the CSS panel.

SquareRefresh, premium plugins & templates that have an elevated feel.

Plugins: Have your site stand out. 
Templates: Our templates are designed with versatility in mind.
Get Freebies: Sometimes things in life are free. Browser our hand selected free plugins.

Link to comment
20 hours ago, SquareRefresh said:

Hey @bsturc you want to use a markdown block and not a code block. Markdown blocks also have a cheatsheet to a SQSP help page which shows you how to change this accordingly. If you are using a font that's not in SQSP library you will need to add it in the CSS panel.

Okay, so neither of those worked, likely because I'm installing my font incorrectly. I'm frustrated and don't want to troubleshoot this right now, so changing the font seems like the quickest fix. New question - How can I find out what fonts are already in the font library? I'm using the 7.1 version. Thank you!

Link to comment

New questions!

12 hours ago, SquareRefresh said:

@bsturc you still would want to use a markdown down block for plain text and not a code block 

1. What do you mean by this? 'Markdown' is an option within Code Blocks. Are you referring to something else?

2. I figured out how to install custom fonts and get them show, and how format specific sections via CSS with the SquareSpace ID finder, however, the custom fonts don't to show up unless there is a code block above it. Why is this / how do I fix it? I could format all of the text in the code block itself, but there's additional formatting options I want to apply, and it seems easiest to do that via the font style options (like indenting text, for example).1941333897_ScreenShot2021-11-10at9_54_39AM.thumb.png.6e9c0521e76427241aa4eadfd1d0c486.png
Thank you again!
Learning this as I go is kinda fun! And stressful. But mostly fun.

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.