Home Forums Free Themes Education Hub How to change the search button text?

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #16649
    steveywondrous
    Participant

    I have been searching through the theme files and I can’t find the part of code to edit so the “Search” button shows different text. I run a Brazilian website and would really like it to say “Buscar”.

    How can I go about doing this with Education Hub them?

    Thank you

    #16660
    wensolutions
    Keymaster

    Hello @steveywondrous

    To change the text of Search button you need to create and activate child theme.
    Reference here for child theme.

    https://codex.wordpress.org/Child_Themes

    After that in main theme’s folder you will see basic.php file inside inc/hook.
    In this file you will see function education_hub_customize_search_form() { in line no: 18.

    Now you need to copy the entire function from line no: 18-31, in child theme’s folder functions.php file.

    Now inside that function you will below part of code:
    <input type="submit" class="search-submit" value="'. esc_attr_x( 'Search', 'submit button', 'education-hub' ) .'" />

    Now, here you can change the text ‘Search‘ as you want, if you want to change to ‘Buscar‘ then it will be:
    <input type="submit" class="search-submit" value="'. esc_attr_x( 'Buscar', 'submit button', 'education-hub' ) .'" />

    Hope this will help to resolve you issue.
    Let us know how it goes.

    Regards!!!

    #16681
    steveywondrous
    Participant

    It worked, fantastic.

    Thank you very much! 🙂

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.