Advertisement:

Trying to Change "Home" Menu Link URL

Aloittaja sambosh, helmikuu 02, 2014, 10:26:25 IP

« edellinen - seuraava »

sambosh

Hi all,

I'm trying to change the url that my home menu links to.  I've read lots in the SMF forum, but I don't recognize any of the code in my index.template.php.

Can someone give me a hand?  I've been going nuts trying to fix this for hours.


sambosh


Sir Osis of Liver


The /Sources/ directory is in your forum root.  Subs.php contains the menu button array.  Look for 'All the buttons'.

When in Emor, do as the Snamors.
                              - D. Lister

sambosh

Okay great I found it: forum/Sources/Subs-Menu.php

Is that what I want?  What do I do next?

ApplianceJunk

Yea, that's what you want.

Search the text for the word, home

The code for your home button looks like this.

$buttons = array(
'home' => array(
'title' => $txt['home'],
'href' => $scripturl,
'show' => true,
'sub_buttons' => array(
),


Change the 'href' to what ever you want the button to link to.

ApplianceJunk

For example

Change this...

'href' => $scripturl,

to this...

'href' => 'http://simplemachines.org',

ApplianceJunk

Lainaus käyttäjältä: sambosh - helmikuu 02, 2014, 11:32:06 IP
Okay great I found it: forum/Sources/Subs-Menu.php

Is that what I want?  What do I do next?

Wait, you want Sources/Sub.php

Not Subs-Menu.php

Keep looking in Sources until you find Subs.php
Try the search function of your ftp program.

sambosh

YOU ARE AMAZING!!!  Thanks so much, I really mean that :)

Advertisement: