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

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

 

image.png.21568024c8663e317db147dadfa3f501.png

image.png.b3bcd0b882d66f1566b004eede5117f5.png

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date format)
💫 Animated Buttons (Referral URL)
🥳 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

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

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.