ThemeShaper Forums » Thematic

[closed]

How to change width of search are

(4 posts)
  • Started 11 years ago by sp_key
  • Latest reply from cannobbio
  • This topic is not resolved

Tags:

  1. sp_key
    Member

    Can aanyone please advice?
    I am trying to change the width and text of the search box but don't understand which documents I need to alter.

    Many thanks in advance

    Posted 11 years ago #
  2. cannobbio
    Member

    You need to put something like this in your theme's style.css:

    #searchform #s {
    color:#999999;
    font-size:14px;
    width:200px;
    }

    cya

    Posted 11 years ago #
  3. sp_key
    Member

    Great! Many thanks for that but what about changing the actual text on the search box?
    For example, change "to search type and hit enter" to "search"

    Posted 11 years ago #
  4. cannobbio
    Member

    You need to put this on your functions.php:

    function my_search_field_value($value) {
    return 'YOUR TEXT HERE';
    }
    add_filter('search_field_value', 'my_search_field_value');

    cya

    Posted 11 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.