Jump to content

Custom code block styled as button (broke recently after SquareSpace update?)

Recommended Posts

Posted

Hi,

I previously had a custom code block that would display as a button. This just scrolled to another section in the page. However, at some point, I believe SquareSpace changed the button styling. Can anyone provide advice on how to update this code to work with the new button styles? Currently, it just displays as empty space.

<center><div class="sqs-block button-block sqs-block-button">
 <a href="#page-section-62f13865e9183c21a6049715" class="sqs-block-button-element--medium sqs-block-button-element">Learn More</a>
</div></center>

Thanks so much!

 

 

 

  • Replies 4
  • Views 342
  • Created
  • Last Reply

Top Posters In This Topic

Posted
2 hours ago, mp4 said:

Hi,

I previously had a custom code block that would display as a button. This just scrolled to another section in the page. However, at some point, I believe SquareSpace changed the button styling. Can anyone provide advice on how to update this code to work with the new button styles? Currently, it just displays as empty space.

<center><div class="sqs-block button-block sqs-block-button">
 <a href="#page-section-62f13865e9183c21a6049715" class="sqs-block-button-element--medium sqs-block-button-element">Learn More</a>
</div></center>

Thanks so much!

 

 

 

How do you want to style this button?

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Pinch/Zoom images, videos - PDFs Lightbox - ...) </>  🗓️ Delivery Date Picker (Date picker form field)
Gallery block 7.1 workaround </> 🤖 Ask me anything

Posted

Hi,

Thanks so much for the reply! I'd like to use the Primary button style, which looks like the attached image when used elsewhere. Thanks for your help!

Screen Shot 2022-08-09 at 7.53.10 PM.png

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.