Jump to content

How to change the appearance of a text box without changing the font style

Go to solution Solved by inside_the_square,

Recommended Posts

Hi,

 

I want to change the font used in a particular text box but not change the style. E.g I want it to still be registered as H1 (for SEO purposes etc) but I want it to look like P1. Is there code I can use to do this?

 

Thanks

Link to comment
  • Replies 3
  • Views 333
  • Created
  • Last Reply

Top Posters In This Topic

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.

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
20 hours ago, Scotty_90 said:

Hi,

 

I want to change the font used in a particular text box but not change the style. E.g I want it to still be registered as H1 (for SEO purposes etc) but I want it to look like P1. Is there code I can use to do this?

 

Thanks

Hey @Scotty_90 - you can totally do this with a little CSS! We can write a code that says "inside this specific content block, make the H1 text this font family, font weight, and font size" so it will look like your P1 but it will actually be an H1.

You can use a block id & selector class to isolate it. Here is an example code you can start with: 

#block-123 h1{
font-family: Name!important;
font-size: 15px!important;
font-weight: normal!important;
}

To grab the ID, you can dig around the source code or use this extension: https://insidethesquare.co/chromeext

 

Here is a little video with more info; hope it helps and best of luck with your project! 🙂

 

 

🤓 Creator of InsideTheSquare.co
SQUARESPACE CIRCLE LEADER SQUARESPACE EXPERT SQUARESPACE EMPLOYEE EDUCATOR CERTIFIED CUSTOM CODE EXPERT

🗺️ New to Squarespace? Get your free roadmap: insidethesquare.co/roadmap
🙋‍♀️ New to CSS? Learn the basics for free: insidethesquare.co/learn
️ Ready to go pro? Get my custom code collection: insidethesquare.co/css

 

BeccaHarpain.gif.236d6ddd88c7d637645b762799f501a8.gif

 

Link to comment
  • 2 weeks later...

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.