Modern_B Posted April 29, 2020 Share Posted April 29, 2020 Site URL: https://jellyfish-kumquat-hdzl.squarespace.com/ Hello, I'd like to edit the placeholder text in my newsletter block email field to read "Email" instead of "Email Address". I've been able to edit the styling of this text but have had no luck changing the words themselves. There doesn't appear to be an option built into the newsletter block editor to change this like you can for the 'Submit' button. Any help would be greatly appreciated 🙂 URL: https://jellyfish-kumquat-hdzl.squarespace.com/ Password: TEMPB1803 Link to comment
tuanphan Posted April 30, 2020 Share Posted April 30, 2020 You can use jQuery to change email address text. It needs Business Plan. Which plan do you use? therealmiguel 1 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
Modern_B Posted April 30, 2020 Author Share Posted April 30, 2020 Currently on trial version, but will move to business plan in a couple of days for launch 🙂 Link to comment
tuanphan Posted May 2, 2020 Share Posted May 2, 2020 On 4/30/2020 at 10:34 AM, Modern_B said: Currently on trial version, but will move to business plan in a couple of days for launch 🙂 Add to Home > Settings > Advanced > code Injection > Footer <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.0/jquery.min.js"></script> <script> $(document).ready(function() { $("div#block-e0d1501cb525ac50b3a0 .newsletter-block .newsletter-form-field-element").attr('placeholder','Email'); }); </script>  Ruth, Ubat and therealmiguel 2 1 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
Modern_B Posted May 3, 2020 Author Share Posted May 3, 2020 Thank you mate, much appreciated! Link to comment
Modern_B Posted May 7, 2020 Author Share Posted May 7, 2020 On 5/3/2020 at 2:18 AM, tuanphan said: Add to Home > Settings > Advanced > code Injection > Footer <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.0/jquery.min.js"></script> <script> $(document).ready(function() { $("div#block-e0d1501cb525ac50b3a0 .newsletter-block .newsletter-form-field-element").attr('placeholder','Email'); }); </script> Â Hmm this doesn't seem to work for me. I double checked the block ID, any other ideas I could try? Ruth 1 Link to comment
Modern_B Posted May 7, 2020 Author Share Posted May 7, 2020 Got it to work using this code in the end, thanks for all your help. <script> Â if (document.querySelector("#block-e0d1501cb525ac50b3a0")) { Â Â document.querySelector('.newsletter-form-field-element[name="email"]').placeholder='Email';Â Â } </script> therealmiguel and Voila 1 1 Link to comment
therealmiguel Posted June 24, 2020 Share Posted June 24, 2020 Thank you both. This has helped me customise my newsletter email placeholder text 🙂 Link to comment
Guest Posted August 15, 2020 Share Posted August 15, 2020 (edited) Got it. thank you. Edited August 15, 2020 by Vivian Link to comment
Ruth Posted September 2, 2020 Share Posted September 2, 2020 (edited) On 5/7/2020 at 6:03 AM, Modern_B said: Got it to work using this code in the end, thanks for all your help. <script>  if (document.querySelector("#block-e0d1501cb525ac50b3a0")) {   document.querySelector('.newsletter-form-field-element[name="email"]').placeholder='Email';  } </script> 🙂  Edited September 2, 2020 by Ruth I worked it out. Link to comment
Guest Posted October 7, 2020 Share Posted October 7, 2020 Hello i have the same problem but none of the above codes work for me... Is there any CSS code that does the same thing? Link to comment
tuanphan Posted October 7, 2020 Share Posted October 7, 2020 2 hours ago, Nodus said: Hello i have the same problem but none of the above codes work for me... Is there any CSS code that does the same thing? Can you share link to page where you use newsletter? We can check easier. 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
Hecho Posted December 7, 2020 Share Posted December 7, 2020 Hi i would also like to do this but the code isn't working for me Link to comment
tuanphan Posted December 8, 2020 Share Posted December 8, 2020 14 hours ago, Hecho said: Hi i would also like to do this but the code isn't working for me Can you share link to page where you use newsletter? We can help easier 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
CalvinEK Posted November 19, 2021 Share Posted November 19, 2021 I tried the suggestions in this post on https://www.calvin.no/, but they didn't work on my site. Any idea how I can change the placeholder text to something else ("E-post"). Link to comment
tuanphan Posted November 21, 2021 Share Posted November 21, 2021 On 11/19/2021 at 9:09 PM, CalvinEK said: I tried the suggestions in this post on https://www.calvin.no/, but they didn't work on my site. Any idea how I can change the placeholder text to something else ("E-post"). Add to Code Injection > Footer <script> if (document.querySelector("div#block-7a0e9e4add2a3b74e014")) { document.querySelector('.newsletter-form-field-element[name="email"]').placeholder='E-post'; } </script>  CalvinEK 1 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
CalvinEK Posted November 25, 2021 Share Posted November 25, 2021 On 11/21/2021 at 3:31 AM, tuanphan said: Add to Code Injection > Footer <script> if (document.querySelector("div#block-7a0e9e4add2a3b74e014")) { document.querySelector('.newsletter-form-field-element[name="email"]').placeholder='E-post'; } </script> Â This worked wonderfully. Thank you! Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment