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
ACF Repeater Post Object in oxygen code block
2. 10. 2020 in ,
You are using gutenberg and ACF and toolset and need to add related posts in slider, which you choose at the post you are editing? Also you need to put them in the content, exactly where you want? Create ACF repeater with Post Object field inside Create Oxygen Block for Gutenberg Add code block and […]
Read More
Aleš Sýkora wrote
Get a grandparent post ID from a shortcode
1. 7. 2019 in
This simple shortcode will allow you to get that grandparent post ID without the need for additional Content Templates or Views.
Read More
Aleš Sýkora wrote
Footer at the bottom of page Oxygen Builder
2. 12. 2020 in ,
Push your footer to the bottom in oxygen builder.
Read More
magnifiercross linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram