Jump to content

Mindbody widget customization on 7.1

Recommended Posts

Site URL: http://www.klasikfit.com

I am losing my mind trying to customize Mindbody healcode links on a customer's website. I've injected the code into the code blocks, but cannot for the life of me get the CSS to style the code the way I want. Here's the code I'm using, and it's not working on 7.1:

a.healcode-contract-text-link {
color: #fff !important;
border: solid 0px #366f82;
background: #366f82;
border-radius: 3px;
padding-top: 10px;
padding-bottom: 10px;
padding-right: 15px;
padding-left: 15px;
text-transform: uppercase;
letter-spacing: 1.3px;
display: inline-block;

}

The following CSS is working, but it's impacting all code blocks overall (and that's not my goal; my goal is to target each code block individually OR target each Mindbody healcode link), and it's making the button align to the left of the screen: 

.sqs-block-code
{
text-align: center;
font-family: Avenir Next;
background-color: white !important;
color: #2FC7F9;
font-size: 15px;
font-weight: 700;
margin: auto;
border-radius: 3px; 
padding-top: 10px; 
padding-bottom: 10px; 
padding-right: 25px;
padding-left: 25px; 
text-transform: uppercase; 
letter-spacing: 1.3px; 
display: inline-block;
}

 

There's hardly any resources out there for coding Mindbody widgets, so I am praying someone can help here. Thanks in advance!

Link to comment
2 hours ago, daringcreativeco said:

Site URL: http://www.klasikfit.com

I am losing my mind trying to customize Mindbody healcode links on a customer's website. I've injected the code into the code blocks, but cannot for the life of me get the CSS to style the code the way I want. Here's the code I'm using, and it's not working on 7.1:

a.healcode-contract-text-link {
color: #fff !important;
border: solid 0px #366f82;
background: #366f82;
border-radius: 3px;
padding-top: 10px;
padding-bottom: 10px;
padding-right: 15px;
padding-left: 15px;
text-transform: uppercase;
letter-spacing: 1.3px;
display: inline-block;

}

The following CSS is working, but it's impacting all code blocks overall (and that's not my goal; my goal is to target each code block individually OR target each Mindbody healcode link), and it's making the button align to the left of the screen: 

.sqs-block-code
{
text-align: center;
font-family: Avenir Next;
background-color: white !important;
color: #2FC7F9;
font-size: 15px;
font-weight: 700;
margin: auto;
border-radius: 3px; 
padding-top: 10px; 
padding-bottom: 10px; 
padding-right: 25px;
padding-left: 25px; 
text-transform: uppercase; 
letter-spacing: 1.3px; 
display: inline-block;
}

 

There's hardly any resources out there for coding Mindbody widgets, so I am praying someone can help here. Thanks in advance!

You can identify the block id using this tool

Squarespace ID Finder - Chrome Web Store (google.com)

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
8 hours ago, daringcreativeco said:

Site URL: http://www.klasikfit.com

I am losing my mind trying to customize Mindbody healcode links on a customer's website. I've injected the code into the code blocks, but cannot for the life of me get the CSS to style the code the way I want. Here's the code I'm using, and it's not working on 7.1:

a.healcode-contract-text-link {
color: #fff !important;
border: solid 0px #366f82;
background: #366f82;
border-radius: 3px;
padding-top: 10px;
padding-bottom: 10px;
padding-right: 15px;
padding-left: 15px;
text-transform: uppercase;
letter-spacing: 1.3px;
display: inline-block;

}

The following CSS is working, but it's impacting all code blocks overall (and that's not my goal; my goal is to target each code block individually OR target each Mindbody healcode link), and it's making the button align to the left of the screen: 

.sqs-block-code
{
text-align: center;
font-family: Avenir Next;
background-color: white !important;
color: #2FC7F9;
font-size: 15px;
font-weight: 700;
margin: auto;
border-radius: 3px; 
padding-top: 10px; 
padding-bottom: 10px; 
padding-right: 25px;
padding-left: 25px; 
text-transform: uppercase; 
letter-spacing: 1.3px; 
display: inline-block;
}

 

There's hardly any resources out there for coding Mindbody widgets, so I am praying someone can help here. Thanks in advance!

replace .sqs-block-code with .code-block-id

use above tool to find block id.

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
5 hours ago, tuanphan said:

replace .sqs-block-code with .code-block-id

use above tool to find block id.

When I use .code-block-id nothing happens. It will only update with sqs.block-code. 

I have even tried it with the block ID number but it's still not working. This is what I have now and it's not impacting the design the way I need it to:

#block-yui_3_17_2_1_1620753293385_10282
.sqs-block-code
{
text-align: center !important;
font-family: Avenir Next;
background-color: white !important;
color: #2FC7F9;
font-size: 15px;
font-weight: 700;
margin: auto;
border-radius: 3px; 
padding-top: 10px; 
padding-bottom: 10px; 
padding-right: 25px;
padding-left: 25px;
letter-spacing: 1.3px; 
display: inline-block;
}

 

The button still isn't centered on the page. I have tried wrapping the code in <center></center>, and that doesn't work either.

 

This is the page: https://www.klasikfit.com/memberportal

 

Any other thoughts?

Link to comment
56 minutes ago, daringcreativeco said:

When I use .code-block-id nothing happens. It will only update with sqs.block-code. 

I have even tried it with the block ID number but it's still not working. This is what I have now and it's not impacting the design the way I need it to:

#block-yui_3_17_2_1_1620753293385_10282
.sqs-block-code
{
text-align: center !important;
font-family: Avenir Next;
background-color: white !important;
color: #2FC7F9;
font-size: 15px;
font-weight: 700;
margin: auto;
border-radius: 3px; 
padding-top: 10px; 
padding-bottom: 10px; 
padding-right: 25px;
padding-left: 25px;
letter-spacing: 1.3px; 
display: inline-block;
}

 

The button still isn't centered on the page. I have tried wrapping the code in <center></center>, and that doesn't work either.

 

This is the page: https://www.klasikfit.com/memberportal

 

Any other thoughts?

Add the code to Design->Custom CSS. not the advanced code injection

#block-yui_3_17_2_1_1620753293385_10282 {
text-align: center !important;
font-family: Avenir Next;
background-color: white !important;
color: #2FC7F9;
font-size: 15px;
font-weight: 700;
margin: auto;
border-radius: 3px; 
padding-top: 10px; 
padding-bottom: 10px; 
padding-right: 25px;
padding-left: 25px;
letter-spacing: 1.3px; 
display: inline-block;
}

 

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
31 minutes ago, bangank36 said:

Add the code to Design->Custom CSS. not the advanced code injection


#block-yui_3_17_2_1_1620753293385_10282 {
text-align: center !important;
font-family: Avenir Next;
background-color: white !important;
color: #2FC7F9;
font-size: 15px;
font-weight: 700;
margin: auto;
border-radius: 3px; 
padding-top: 10px; 
padding-bottom: 10px; 
padding-right: 25px;
padding-left: 25px;
letter-spacing: 1.3px; 
display: inline-block;
}

 

Thank you - removed the .sqs-block-code but it's still aligning to the left of the screen. 

Link to comment
41 minutes ago, bangank36 said:

Add the code to Design->Custom CSS. not the advanced code injection


#block-yui_3_17_2_1_1620753293385_10282 {
text-align: center !important;
font-family: Avenir Next;
background-color: white !important;
color: #2FC7F9;
font-size: 15px;
font-weight: 700;
margin: auto;
border-radius: 3px; 
padding-top: 10px; 
padding-bottom: 10px; 
padding-right: 25px;
padding-left: 25px;
letter-spacing: 1.3px; 
display: inline-block;
}

 

And I have been putting everything into Custom CSS, not advanced code injection. 

Link to comment
28 minutes ago, daringcreativeco said:

And I have been putting everything into Custom CSS, not advanced code injection. 

We still see the code in the page content, make sure to remove it form page injection as well

image.thumb.png.aee3a32d2976ee4c644bbad6d38346f2.png

About the button, could you remove the space on the left, make sure the code block full width and update this snippet?

#block-yui_3_17_2_1_1620753293385_10282 {
    margin: 0 auto;
    display: block !important;
    max-width: 200px;
    text-align: center !important;
    font-family: Avenir Next;
    background-color: #fff !important;
    color: #2fc7f9;
    font-size: 15px;
    font-weight: 700;
    margin-left: auto;
    margin-right: auto;
    border-radius: 3px;
    padding-top: 10px;
    padding-bottom: 10px;
    padding-right: 25px;
    padding-left: 25px;
    letter-spacing: 1px;
    display: inline-block;
}

image.thumb.png.c98bc8aa6deb86a1ff016d73e835cd82.png

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
8 minutes ago, bangank36 said:

We still see the code in the page content, make sure to remove it form page injection as well

image.thumb.png.aee3a32d2976ee4c644bbad6d38346f2.png

About the button, could you remove the space on the left, make sure the code block full width and update this snippet?


#block-yui_3_17_2_1_1620753293385_10282 {
    margin: 0 auto;
    display: block !important;
    max-width: 200px;
    text-align: center !important;
    font-family: Avenir Next;
    background-color: #fff !important;
    color: #2fc7f9;
    font-size: 15px;
    font-weight: 700;
    margin-left: auto;
    margin-right: auto;
    border-radius: 3px;
    padding-top: 10px;
    padding-bottom: 10px;
    padding-right: 25px;
    padding-left: 25px;
    letter-spacing: 1px;
    display: inline-block;
}

image.thumb.png.c98bc8aa6deb86a1ff016d73e835cd82.png

That worked! Thank you so much!!!!!!!!! 

Link to comment

Hi @daringcreativeco I see some problems. Do you want to fix these?

 

Site URL – https://www.klasikfit.com/

1. (Mobile-Homepage) Reduce white space?

klasikfit.com-01-min.png

2. (Mobile-Footer) Center footer text/links?

klasikfit.com-02-min.png

3. (Tablet-Header) Move button up a bit?

klasikfit.com-03-min.png

4. (Tablet-Partnerships)

klasikfit.com-04-min.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
  • 2 weeks later...
12 hours ago, daringcreativeco said:

Hi @tuanphan. Sorry about the delay, I didn't get notified about your post. Yes! I would love to fix all of those issues. Possible with CSS?

Q1. With white spacing, you can remove space inside image with a software, eg: Photoshop, AI... or crop in Squarespace.

Klasik+Fit+in+home+and+virtual+personal+

 

Q2, 3, 4. Add to Design > Custom CSS

/* Mobile */
@media screen and (max-width:767px) {
/* center footer */
div#block-5fd55976226e9048fa9f164c * {
    text-align: center;
}
}
/* tablet */
@media screen and (min-width:768px) {
/* menu button */
.header-menu-cta {
    position: relative;
    top: -50px;
}
/* partnerships */
div#block-66de3c22647d3f8f9977 h3 {
    white-space: nowrap !important;
}
}

 

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
On 6/12/2021 at 3:42 AM, tuanphan said:

Q1. With white spacing, you can remove space inside image with a software, eg: Photoshop, AI... or crop in Squarespace.

Klasik+Fit+in+home+and+virtual+personal+

 

Q2, 3, 4. Add to Design > Custom CSS


/* Mobile */
@media screen and (max-width:767px) {
/* center footer */
div#block-5fd55976226e9048fa9f164c * {
    text-align: center;
}
}
/* tablet */
@media screen and (min-width:768px) {
/* menu button */
.header-menu-cta {
    position: relative;
    top: -50px;
}
/* partnerships */
div#block-66de3c22647d3f8f9977 h3 {
    white-space: nowrap !important;
}
}

 

Thank you so much!

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.