abc Posted November 17, 2021 Share Posted November 17, 2021 (edited) Site URL: https://steven.squarespace.com/clients Hello, I'm trying to replace the default placeholder text inside the Search block to something else using custom CSS. Thank you in advance. Edited November 17, 2021 by alanx Beyondspace 1 Link to comment
Solution Beyondspace Posted November 18, 2021 Solution Share Posted November 18, 2021 11 hours ago, alanx said: Site URL: https://steven.squarespace.com/clients Hello, I'm trying to replace the default placeholder text inside the Search block to something else using custom CSS. Thank you in advance. It may require custom script, add this to footer <script> (function() { document.querySelector("input.search-input").setAttribute("placeholder", "This is your Search Input"); })() </script> tuanphan and abc 2 BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox - Lightbox captions only mode) 🗓️ Delivery Date Picker (Squarespace Date picker form field) 💫 Gallery block 7.1 workaround 🥳 No-code customisations for Squarespace 🚀 Learn how to rank new pages on Google in 48 hours! 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
abc Posted November 18, 2021 Author Share Posted November 18, 2021 20 minutes ago, bangank36 said: It may require custom script, add this to footer <script> (function() { document.querySelector("input.search-input").setAttribute("placeholder", "This is your Search Input"); })() </script> Thanks so much! I thought it was possible with something like: blah-blah-blah:after { content: 'custom text'; } Anyway, your solution works. Beyondspace 1 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