It's better when it's simple

User Tools

Site Tools


Translations of this page?:

Learn about DokuWiki

Advanced Use

Corporate Use

Our Community

Follow us on Facebook, Twitter and other social networks.

Our Privacy Policy


Adding default text for the search box

Just copy and paste this into your local [dokuwiki]/conf/userscript.js file.

 * Add a placeholder text into the input field of the wiki search
jQuery(function () {
    var defaulttext_searchinput = 'Enter Keywords to search wiki';
    var $searchinput = jQuery('#qsearch__in');
    if ($searchinput.length && !$searchinput.attr('placeholder')) {
        $searchinput.attr('placeholder', defaulttext_searchinput);

More info

Can be found in the javascript pages.

tips/default_text_search.txt · Last modified: 2013-09-18 22:05 by Klap-in