- This topic has 2 replies, 2 voices, and was last updated 8 years, 1 month ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.
Home › Forums › Free Themes › Education Hub › How to change the search button text?
Tagged: Best Prices Comparison
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
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!!!
It worked, fantastic.
Thank you very much! 🙂
Cookie | Duration | Description |
---|---|---|
cookielawinfo-checkbox-analytics | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics". |
cookielawinfo-checkbox-functional | 11 months | The cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional". |
cookielawinfo-checkbox-necessary | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary". |
cookielawinfo-checkbox-others | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other. |
cookielawinfo-checkbox-performance | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance". |
viewed_cookie_policy | 11 months | The cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data. |