The text can help readers to identify the search area more easily, encourage them to use the search function or even clarify the searching process for non-experienced users. Here are some examples of texts that you can include on your box:
- Search
- Search here
- Search this blog
- To search, type and hit enter
Now lets clarify how to place the text inside the search form. The first thing you need to locate is the the search form code. Wordpress users should be able to find it within the header.php or sidebar.php files, depending on where your search box is located. Once you find the code look for the a line similar to this one:
Now you will need to add three new arguments inside that line:- value=”Text to be displayed here”
- onfocus=”if(this.value==this.defaultValue)this.value=”;”
- onblur=”if(this.value==”)this.value=this.defaultValue;”
0 comments:
Post a Comment