WordPress.org

Ready to get started?Download WordPress

Forums

Q and A FAQ and Knowledge Base for WordPress
How to translte Search field and Search button? (2 posts)

  1. Jahrl
    Member
    Posted 1 year ago #

    I want to translate the word "Search" in the search filed and in the button. There are no options to do that in the po/mo files using Localization. Any ideas how to fix it?

    http://wordpress.org/extend/plugins/q-and-a/

  2. cinek2030
    Member
    Posted 1 year ago #

    Hello,
    You have to edit the /plugins/q-and-a/inc/shortcodes.php file.

    Find the lines in the end of this file:
    $searchform = '<form role="search" method="get" id="qaplus_searchform" action="' . home_url() . '"> <input type="text" value="" placeholder="' . __('xxxxxx', 'qa-plus') . '" name="s" id="qasearch" class="qaplus_search" /> <input type="hidden" name="search_link" id="qa_search_link" value="' . home_url() . '/' . $qaplus_options['faq_slug'] . '/search/"/> <input type="submit" id="qaplus_searchsubmit" value="yyyyyy" /> </form>';

    xxxxxx is the text in the search entry window (originally “Search FAQs”)
    yyyyyy is the button text (Originally “Search”)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic