pro 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 pro 2 Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Lightbox Studio pluginIf you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. Thank you Link to comment
pro 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