Search Field Edit

Discussion in 'GeoCraft WordPress Theme' started by srfrdrew, Feb 3, 2014.

Thread Status:
Not open for further replies.
  1. srfrdrew

    srfrdrew New Member

    Joined:
    Apr 15, 2013
    Messages:
    14
    Likes Received:
    1
    Is there a way I can edit the "Search" field (and "Location" field) the default grayed out "Search..." or "Location" word

    I'd like to add some helpful generic "grayed out" search words (within the search or location field) to help out our users and give them an idea what they can put there.

    Even though it may be straight forward and obvious to me and everyone else, I was asked to see if this could be done.

    Thanks
     
  2. jsal2

    jsal2 Member

    Joined:
    Dec 23, 2012
    Messages:
    112
    Likes Received:
    7
    I believe we did that also in the following file...

    Edit the text/words within the search field in the /library/text domains/template_path.php file <<<<<<<<<​

    //home_searchform.php
    define('SRCH',__('Search...',THEME_SLUG));
    define('LKTION',__('Location...',THEME_SLUG));
     
  3. srfrdrew

    srfrdrew New Member

    Joined:
    Apr 15, 2013
    Messages:
    14
    Likes Received:
    1
    Sorry, but still a newbie when it comes to WP, can you please give me the steps to get to the place to "Edit the text/words..." I don't know where to find and how to find the php file to edit

    Thanks!
     
  4. Gourav

    Gourav Support Staff

    Joined:
    Oct 19, 2012
    Messages:
    7,728
    Likes Received:
    207


    Hello,

    Go to library > text_domains > template_path.php present in your theme directory and follow the instruction as shown in image given below

    2014-02-08_1134.png



    Thanks & Regards
    Gourav Shrivastava
     
  5. srfrdrew

    srfrdrew New Member

    Joined:
    Apr 15, 2013
    Messages:
    14
    Likes Received:
    1
    Thanks for the info but again newbie here... How do I get to the library > text_domains > template_path.php

    Can I access the "Theme Directory" in WP? I'm still lost

    Thank you
     
  6. srfrdrew

    srfrdrew New Member

    Joined:
    Apr 15, 2013
    Messages:
    14
    Likes Received:
    1
    After digging around in WP, I found where to go... Thank you It worked!
     
Thread Status:
Not open for further replies.

Share This Page