Jump to content

How to change all text blocks on a similar page

Go to solution Solved by tuanphan,

Recommended Posts

Hi all,

As my title says, i'm trying to understand the best way of editing all of the text blocks on a given page. What I previously had done is enter in a line of code along the lines of:

#block-yui_3_17_2_1_1688526320643_4880

p{font-size: 12px; line-height: .4px;}

...for each individual block, which for one page alone would amount to a lot, let alone the many pages I have on the website. Is there a better way to change the line-height/font-size, etc., of a page without having to do one for each individual block?

Thanks in advance!

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

Top Posters In This Topic

Top Posters In This Topic

Posted Images

  • Solution

Your code target Paragraph of specific text block

to target all text block on a page, you can target Page ID or use Page Header Code Injection/Code Block

If you use Business Plan or higher, just add this code to Page Header Code Injection

If you use Personal Plan, you can edit that page > Add a Code Block > Paste same code

<style>
  p{font-size: 12px !important; line-height: .4px !important;}
</style>

 

image.thumb.png.6ea6b3b5b31253de254a90af2e21a7ca.png

image.thumb.png.00517d00bb0fea21351939cb35f6aad0.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.