Jump to content

Lighbox button

Go to solution Solved by paul2009,

Recommended Posts

Hi community,

how can i change the size of the CTA-Button of the contact form when i am using the lightbox mode?The button is way to small for a cta-button ;-)

Do you have an idea?Best regardsMarkus

Edited by mdufner
Initial Revision
Link to comment
  • Replies 8
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

Please include a working link to the page on your site. If your site isn't live yet, please set a site password and tell us what it is. For more advice, read the forum guidelines

Improve your online store with our extensions.
About: Squarespace Circle Leader since 2017. I value honesty, transparency, appreciation and great design ♥.
Work: Squarespace Developer and founder of SF Digital, building the features Squarespace didn't include™.
Content: Links in my posts may refer to SF Digital products or may be affiliate links.

Buy me a coffee

Link to comment
  • Solution

Add this to Design > Custom CSS and adjust the padding to suit:


span.lightbox-handle.sqs-system-button.sqs-editable-button {
 padding: 2em 2.5em;
}

Let me know how you get on.

-Paul

Squarespace Expert & Professional Developer

Contributors to this forum voluntarily give their time to help you. If we correctly answer your question, please accept the answer by clicking Accept below it (you'll see it when you're logged on). If an answer doesn't help, feel free to ask for more help or wait for other forum users to add their comments and/or answers.

Whenever an accepted answer helps you, please vote it up using the up arrow on the right. This helps other forum users by giving them confidence in an answer.

Improve your online store with our extensions.
About: Squarespace Circle Leader since 2017. I value honesty, transparency, appreciation and great design ♥.
Work: Squarespace Developer and founder of SF Digital, building the features Squarespace didn't include™.
Content: Links in my posts may refer to SF Digital products or may be affiliate links.

Buy me a coffee

Link to comment
  • 6 months later...
On 8/14/2019 at 5:51 PM, paul2009 said:

Add this to Design > Custom CSS and adjust the padding to suit:



 

span.lightbox-handle.sqs-system-button.sqs-editable-button {
 padding: 2em 2.5em;
}
 

 

Let me know how you get on.

-Paul

Squarespace Expert & Professional Developer

Contributors to this forum voluntarily give their time to help you. If we correctly answer your question, please accept the answer by clicking Accept below it (you'll see it when you're logged on). If an answer doesn't help, feel free to ask for more help or wait for other forum users to add their comments and/or answers.

Whenever an accepted answer helps you, please vote it up using the up arrow on the right. This helps other forum users by giving them confidence in an answer.

@Paul2009

Can you help me.

The code posted here used to also work on my site www.daviddawn.com/events on Foster template. Its suddenly stopped working and as you can see by the live site the lightbox button in thin. I want it to look like a standard size button as per the attached photo.

I want this on the Events Page and The Ratcliffe Process - These are index pages (in case that helps)

Can you help me get this sorted with a new code recommend please? thank you

Hope that makes sense

1459252276_Screenshot2019-10-29at10_25_33.png.5a8f5646921e42180892fd92af8a78a6.png

Link to comment

@paul2009

Can you help me.

The code posted here used to also work on my site www.daviddawn.com/events on Foster template.

Its suddenly stopped working and as you can see by the live site the lightbox button in thin. I want it to look like a standard size button as per the attached photo.

I want this on the Events Page and The Ratcliffe Process - These are index pages (in case that helps)

Can you help me get this sorted with a new code recommend please? thank you

Hope that makes sense Thank you in advance for your time

1459252276_Screenshot2019-10-29at10_25_33.png.5a8f5646921e42180892fd92af8a78a6.png

Link to comment

As I have posted elsewhere on the forum, Squarespace made changes to the underlying template used to render Form Blocks this week (week commencing 24th February 2020). These unannounced changes have improved accessibility but have resulted in changes to the HTML used to generate Squarespace forms. This has affected code on hundreds of websites that use CSS or JavaScript to modify the style or behaviour of the form. You'll need to modify the CSS to match the new structure.

Improve your online store with our extensions.
About: Squarespace Circle Leader since 2017. I value honesty, transparency, appreciation and great design ♥.
Work: Squarespace Developer and founder of SF Digital, building the features Squarespace didn't include™.
Content: Links in my posts may refer to SF Digital products or may be affiliate links.

Buy me a coffee

Link to comment
  • 2 weeks later...
On 2/28/2020 at 10:43 PM, paul2009 said:

As I have posted elsewhere on the forum, Squarespace made changes to the underlying template used to render Form Blocks this week (week commencing 24th February 2020). These unannounced changes have improved accessibility but have resulted in changes to the HTML used to generate Squarespace forms. This has affected code on hundreds of websites that use CSS or JavaScript to modify the style or behaviour of the form. You'll need to modify the CSS to match the new structure.

@paul2009 Thank you for letting me know. I'll look around to see if I can get the new code 

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.