Aleš Sýkora wrote

Add placeholder to the search form in Views

26. 7. 2018 in

Would you like to show a placeholder text like “Search something” in the search field made with Toolset Views?

Use this jQuery code in the Search form custom JavaScript section and replace the text “Search in Toolset” with yours:

jQuery(document).ready(function(){
jQuery("input[name='wpv_post_search']").attr("placeholder", "Search in Toolset");
});

toolset search add placeholder
Did you successfully implemented your placeholder in search form? Tell me in the comments below!

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

More from category
Aleš Sýkora wrote
Oxygen Repeater Pagination not working on homepage
When you use repeater on static front-page of your WordPress site and you also wants to use pagination – it doesn’t work at all. It stops at /page/2 and never display /page/3. It still repeat the second page. However – it looks like Oxygen bug, but it is not. As you can see: https://codex.wordpress.org/Pagination#static_front_page. To […]
Read More
Aleš Sýkora wrote
Oxygen builder – default media queries
24. 3. 2021 in ,
Default media queries of Oxygen. You can change them in Global Settings > Global Styles > Width & Breakpoints.
Read More
Aleš Sýkora wrote
WP Rocket + Toolset Exclude files from Defer JS
6. 11. 2019 in
If you use WP Rocket + Toolset (especially Toolset forms) you should exclude deferring some scripts.
Read More
magnifiercross linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram