Okay
  Public Ticket #182839
Change Search Bar Text
Closed

Comments

  • Aaron started the conversation

    Hello,

    Is there a way, to change the text in the search bar when clicked for example instead of it saying "start typing..." to "Type in a location..."

  •  8,994
    Tahir replied

    Hey Aaron!

    You can use the codestyling localization plugin to change the default.po text with new one. Or you could change the files in code "includes\header-search.php" on line 19 .

    Cheers


    ThemeNectar Support Team 

  • Aaron replied

    Got it working thanks.

  • [deleted] replied

    When i try to edit the .po file with the codestyling localization plugin i get this error message:

    Error: The actual loaded translation content does not match the textdomain: js_composer
    Expect, that any text you translate will not occure as long as the textdomain is mismatching!
    This is a coding issue at the source files you try to translate, please contact the original Author and explain this mismatch.

    Could you please look into this.

    Thanks.

  •  1,089
    ThemeNectar replied

    Hey Esben,

    make sure you've renamed the .po/.mo inside of the salient/lang folder to match your defined language in wp-config.php - once you've done that hit "rescan" in codestyling localization to get all the theme's strings :)

  • Jan replied

    Thanks!

    I had the same problem. This last comment solved it for me.

  • OCC_Webmaster replied

    Hello,

    I'd like to change the text in the search bar. Instead of it saying 'start typing' I'd like it to say something else.

    Is there an easy or basic way to do this? I tried the suggestions in this thread and it looks like the  codestyling localization plugin is no longer available.

    Thanks

  •  8,994
    Tahir replied

    Hey Again,

    Try using this Plugin : https://wordpress.org/plugins/say-what/ . 

    You can find the list of string in "salient/lang/nectar_salient_strings.pot" file next to the "msgid" variable as below.

    msgid "Leave a Reply"
    msgid "Cancel Reply"
    

    In The "Text Domain" field write "salient" without quotes . If you are trying to change woocommerce words  add "woocommerce" in "Text domain" . The fields are case-sensitive meaning "next project" wont work and you will have to add "Next Project" .

    9799383690.png


    Thanks 


    ThemeNectar Support Team