Hi,
I'm struggling to figure out how to remove the word "Search" from the search button provided in the BlackCandy theme (see attached image). I've applied a background image which shows a nice graphic, so I don't want text over it. If I can make the <input ... value=""> then it works fine, but I can't track down where to do this. I can't even seem to change the text, let alone remove it. I've tried changing all the words 'Search' and 'Go' in SearchForm.php:
function __construct($controller, $name, $fields = null, $actions = null, $showInSearchTurnOn = true) {
$this->showInSearchTurnOn = $showInSearchTurnOn;
if(!$fields) {
$fields = new FieldSet(
new TextField('Search', _t('SearchForm.SEARCH', 'Search')
));
}
if(singleton('SiteTree')->hasExtension('Translatable')) {
$fields->push(new HiddenField('locale', 'locale', Translatable::get_current_locale()));
}
if(!$actions) {
$actions = new FieldSet(
new FormAction("getResults", _t('SearchForm.GO', 'Go'))
);
}
...but nothing seems to make a difference.
I've been doing dev/build?flush=1 and ?flush=1 while trying every combination. The SS tutorial on making the site search function shows the word "Go", which doesn't happen on my install, so I assume that's out of date? And there's a similar question solved here that's from January, but again the code doesn't seem to match mine? I'm just baffled what to try next.
In FF & Chrome I've solved it just by setting the text color to transparent but that doesn't work in IE.
Any ideas where to from here?
(I'm developing on SS2.3.3 localhost version, but the live website is running 2.3.7, if that makes a difference. The MS Web Installer Platform is still distributing 2.3.3 which is what I used to get up and running, being an amateur at this stuff.)
Cheers,
Alastair