Support » Theme: Modality » Change “Search” to “Search this site”

  • To search the website, a plugin widget had first of all been placed below the navigation bar on the right sidebar, as are the others on my site. http://hersheylibrary.org/

    To move it above the nav. bar, I added css in the Editor, Modality Child stylesheet (style.css). All was well. This is it:

    {
        display: block;
        float: left;
    .navbar.search-form { float:right; }
        width: 100%;
        height: 280px;
        display: none;
    }

    Now, I want to change it from “SEARCH” to ” SEARCH THIS SITE” as it makes more sense. I thought I should find the widget script in the header php but it’s not there. I can’t find this plugin widget anywhere in the Editor.

    To test the change I want, I added the Search widget to a Post and changed the script as seen below. So, I know I can make it work.

    <form role="search" method="get" class="search-form" action="http://hersheylibrary.org/">
    <label>
    <span class="screen-reader-text">Search for:</span>
    <input type="search" class="search-field" placeholder="Search …" value="" name="s" title="Search for:">
    </label>
    <input type="submit" class="search-submit" value="Search this site">
    </form>

    Is there a simple way I can add css to the Child theme to make this small change?
    Thanks.

    • This topic was modified 2 years, 1 month ago by hmahraj.
    • This topic was modified 2 years, 1 month ago by hmahraj.

    The page I need help with: [log in to see the link]

  • The topic ‘Change “Search” to “Search this site”’ is closed to new replies.