Jump to content

Custom Button Presentation in Code Block

Recommended Posts

  • Replies 2
  • Views 874
  • Created
  • Last Reply
13 hours ago, JustGrace said:

Site URL: https://www.carmenroseportraiture.com/home

I'm trying to get the buttons in the code block to look like the buttons that I've already customized in the CSS editor of the site. I think I'm close to getting it to work but I think my code block night need to just be organized differently? 

Screen Shot 2020-12-15 at 12.53.35 PM.png

<div style="display: inline-block;" class="sqs-block button-block sqs-block-button"><div class="sqs-block-content">

<div class="sqs-block-button-container--center" data-animation-role="button" data-alignment="center" data-button-size="medium">
	<a href="" class="sqs-block-button-element--medium sqs-block-button-element" data-initialized="true">Learn more</a>


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

@JustGrace I see your site on mobile, the text "A letter form & under description" very close left of screen. You can add some padding to make it nicer.

/* A letter from carmen */
@media screen and (max-width:767px) {
div#block-e7b17d3460df60e55fe9 {
    margin-left: 10px;
    margin-right: 10px;


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


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.