Jump to content

Make new Code Block larger

Recommended Posts

In the recent updates, the Code Block has recieved an UI update to match the new design of other block such as Summary block, but bad thing is the width size is shrinked down and make it hard to look/edit, so this snippet may help you to increase the width size of code editor block

Add it into Settings->Advance->Code Injection

if ( window.location !== window.parent.location ) {
	window.parent.document.querySelector("head").insertAdjacentHTML("beforeend", '<style>[data-test="block-editor-container"] { width: 620px !important; }</style>')	




BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!


Link to comment
  • Replies 1
  • Views 870
  • Created
  • Last Reply

Yay!  Works perfectly. I complained about this silly little editor to SS with the common/comical response "we will forward your suggestion to engineering" (which means trashcan). 

Outrageous their current design ideas and more and more cumbersome their tool set. Thanks for making it a bit easier for all of us!

Link to comment


This topic is now archived and is closed to further replies.

  • 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.