Jump to content

How can I add text under a specific form block?

Recommended Posts

Hello, I used the following code to place a disclaimer text under a form block (lightbox). Unfortunately, the text also appears under my contact form. I want the text to appear only under a specific block. How can I achieve this? I've already tried using Block ID but couldn't make it work. I appreciate any assistance you can provide!

.form-button-wrapper:after {
    content: "Enter text here";
    display: block;
    margin-top: 5px;
}

https://maltemartenmethod.squarespace.com/
maltemartenmethod2024!

Link to comment
  • Replies 7
  • Views 1.1k
  • Created
  • Last Reply

Top Posters In This Topic

Posted (edited)

@tuanphan It concerns the form on this page. You'll find it as a lightbox under the 'join the class now' button. https://www.maltemartenmethod.com/free-mini-class

How do I find the form ID or how can it be created?

I have another question: Is it possible to turn a word in the text 'Enter text here' (below in the code) into a link? Appreciate any help!

.form-button-wrapper:after {
    content: "Enter text here";
    display: block;
    margin-top: 5px;
}
Edited by Nomis
Link to comment

#1. Try this new CSS code

body#collection-6595797ec3b950376c30d202 .form-button-wrapper:after {
    content: "By signing up, I agree to receive emails and acknowledge the Privacy Policy.";
    display: block;
    text-align: center;
    margin-top: 20px;
}

#2. It will require JS code (need a Business Plan or higher)

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

@tuanphan I unfortunately have another issue with the Form Block. I used code that replaces 'required' with an asterisk '*'. Unfortunately, two additional asterisks are displayed below it in the form. How can I remove them? A screenshot for visualization is attached.

Bildschirmfoto2024-03-11um13_36_00.thumb.png.2b7afcff3dec062b69659803c2128bb6.png

Link to comment
6 hours ago, Nomis said:

I used code that replaces 'required' with an asterisk '*'. Unfortunately, two additional asterisks are displayed below it in the form.

Which workaround are you using? You'll find my workaround here:

 

About me: I'm Paul. A SQSP User for 18 yrs, I joined Circle when it launched in 2016 and have been a Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥.
Work: Founder of SF.DIGITAL, providing expertise and extensions to supercharge your Squarespace website. 
Content: Views and opinions are my own. Links in my posts may refer to my own SF.DIGITAL products or may be affiliate links.
Forum advice is free. You can thank me by clicking one of the feedback emojis below. Coffee fuels my work.

Book paid help with a Squarespace Domain

Link to comment
On 3/8/2024 at 9:16 AM, tuanphan said:

#1. Try this new CSS code

body#collection-6595797ec3b950376c30d202 .form-button-wrapper:after {
    content: "By signing up, I agree to receive emails and acknowledge the Privacy Policy.";
    display: block;
    text-align: center;
    margin-top: 20px;
}

#2. It will require JS code (need a Business Plan or higher)


@tuanphan can you help me with the JavaScript code for the link in the form block text (as described above)? That would be great!

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.