Replace existing text "Search" with a gif

Started by ?Almirena?, January 14, 2016, 07:13:05 AM

Previous topic - Next topic

?Almirena?

We've just upgraded to the latest version of SMF, and have the default theme "Curve".

In our previous version, we used a gif as the search link. With the upgrade, that's gone, and we have an input box which says "search" instead.

What do we need to do in order to use the desired image instead?


Steve

By 'latest version' do you mean 2.0.11 or 2.1 Beta?
DO NOT pm me for support!

?Almirena?

Hi, Steve.

Sorry - I should have been more specific! (I would always be reluctant to install a beta version for a forum in constant use...)

The version is    SMF 2.0.11.

margarett

Where exactly? In the upper right corner? If so, get index.template.php, find:
<input type="submit" name="submit" value="', $txt['search'], '" class="button_submit" />
Replace with:
<input type="image" name="submit" src="http://localhost/img.png" alt ="', $txt['search'], '" class="button_submit" />
(of course adjust the image path accordingly)
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

?Almirena?

Ah, thank you - now it looks as "just right" as Goldilocks' third bowl of porridge.

Advertisement: