Home>Support>Search box colour and text
  1. 9 years, 2 months 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. 9 years, 2 months ago Kathleen Den Dekker van Peteghem

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

  3. 9 years, 2 months 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