News:

Want to get involved in developing SMF? Why not lend a hand on our GitHub!

Main Menu

How do I change the name of buttons?

Started by Kryhs, September 29, 2007, 07:46:29 PM

Previous topic - Next topic

Kryhs

I'm working on a site and have used SMF before and loved it, so I decided to use it again. I've changed the setting before, but I forgot how, so here I am asking for help ;). Where do you change/add variables for what buttons can say? For instance, "Home" is 103, "Search" is 182, etc. I want to add my own.

The site is http://www.clanvclan.com [nofollow] if anyone would like to see it too. If you go to the forum you can see I have two "Home" buttons. i want the second one to say "Index".

codenaught

Take a look in Themes/<theme_name>/index.template.php.

You would probably see two occurrences of:

' , $txt[103] , '

And you could change whichever one you want to Index.

If you want to use a $txt variable, you can add a new entry in Themes/<theme_name>/languages/index.english.php:

$txt['index_menu'] = 'Index';And use that in the template file.
Dev Consultant
Former SMF Doc Coordinator

Kryhs


Advertisement: