test
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • phenomeno Friend
    #183536

    like title!

    thanks

    Wall Crasher Developer
    #478040

    Hi phenomeno,

    The easy way to set the search… text in the search field module is using ‘placeholder’ property which support on most modern browser.

    Open file templatesja_wallhtmlmod_searchdefault.php and add placeholder=”Search…” to the search field.
    Like this
    $output = '<label for="mod-search-searchword">'.$label.'</label><input name="searchword" id="mod-search-searchword" maxlength="'.$maxlength.'" class="inputbox'.$moduleclass_sfx.'" type="text" size="'.$width.'" placeholder="Search..." />';

    You can use other javascript plugin to make it more compatible with old browser, but I think it is not necessary.
    https://github.com/mathiasbynens/jquery-placeholder

    Regards

Viewing 2 posts - 1 through 2 (of 2 total)

This topic contains 2 replies, has 2 voices, and was last updated by  Wall Crasher 11 years, 11 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum