How to change search box text
-
Hello,
I could not find a topic about this specifically.
I simply want to change the text from inside the “Search” box on the top right corner.
My website is: http://www.shortstoryguy.com
I want it to read “Search SSG”
Is this something I can achieve through the child theme or should i go to searchform.php?
Thank you.
Admin
Child theme. See this topic:
https://forum.graphene-theme.com/graphene-support/translating-view-page-%C2%BB
Those posts you linked to refer to customizing the twitter widget. I know there’s something I’m missing. How do I tweak the help in these posts to achieve what I want?
I went to searchform.php to compare the code in there with the code you referenced in the above support link but I couldn’t figure out what you wanted me to do.
Sorry.
Jose
Same function,
<?php
function graphene_filter_gettext( $translated, $original, $domain ) {
$strings = array(
'Search' => 'Search SSG',
);
if ( ! empty( $strings[$original] ) ) {
$translations = &get_translations_for_domain( $domain );
$translated = $translations->translate( $strings[$original] );
}
return $translated;
}
add_filter( 'gettext', 'graphene_filter_gettext', 10, 3 );Thank you. Topic closed
Marking thread as resolved. You can do this yourself as well.
got it. thanks. didnt know.
Viewing 7 posts - 1 through 7 (of 7 total)
- You must be logged in to reply to this topic.