Home>Support>Search box colour and text

Search box colour and text

Notice: This thread is over two years old; the information may be outdated. Please consider creating a new thread if you require free support. If you have an active SiteOrigin Premium license, you can email our premium support desk at [email protected].

How do I change the text that already stands in the search box? Right now it says search in a grey colour.

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 10 years, 24 days ago Magus
    Hi, I Work Here

    Hi Kathleen

    This is a default WordPress widget unfortunately without any options like changing the placeholder text. There is probably a better way of doing this but here is how Andrew does it.

    1. Install this plugin so we can paste PHP into widgets: https://wordpress.org/plugins/enhanced-text-widget/
    2. Insert the new widget Enhanced Text Widget into the widget area.
    3. Insert the search form code into that widget as follows:

    <form role="search" method="get" id="searchform" action="<?php echo home_url( '/' ); ?>">
        <div>
            <input type="text" value="" name="s" id="s" placeholder="Search" />
            <input type="submit" id="searchsubmit" value="Search" />
        </div>
    </form>
    

    Now you can replace the placeholder=”Search” with placeholder=”Suche”.

    Hope that helps.

    Magus

  2. 10 years, 24 days ago Kathleen Den Dekker van Peteghem

    It’s not a widget, it’s the search item in the menu.

  3. 10 years, 24 days ago Magus
    Hi, I Work Here

    Hi Kathleen

    My apologies, I thought you were referring to the search box in your sidebar. To change this text please add a copy of the file searchform.php from the Vantage theme into your Child Theme. Once done please navigate to Appearance->Editor and select the searchform.php file for editing.

    Please look for this section in the text and change the Search term to whatever you require.

    placeholder="<?php esc_attr_e( 'Search', 'vantage' ); ?>"/>
    

    Let us know how you get on

    Magus

Replies on this thread are closed. Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More