SMF Support > SMF 2.0.x Support
Adding Nav Buttions in 2.0
RL Joneson:
How do you add buttons in 2.0? i see that the language code has changed. I want to simply add custom linked buttons to the nav bar. For instance, an "About" button would link to a custom url.
babjusi:
--- Quote from: RL Joneson on April 05, 2008, 06:32:43 PM ---How do you add buttons in 2.0? i see that the language code has changed. I want to simply add custom linked buttons to the nav bar. For instance, an "About" button would link to a custom url.
--- End quote ---
In the 2.0 that has been moved from the index.template.php file to the Subs.php in the /Sources/ directory so it can affect all templates.
Try to search for
--- Quote ---$buttons = array(
--- End quote ---
RL Joneson:
Great! But how do i change the href to link to a url? I put this code in and it isn't working.
--- Code: --- 'home' => array(
'title' => $txt['home'],
'href' => http://rljoneson.com/faf/home/home.html,
'show' => true,
'sub_buttons' => array(
),
),
--- End code ---
Oldiesmann:
Make sure $txt['home'] is a real text string.
RL Joneson:
It is right? I just wanted to change the link to where the current HOME button goes to.
Navigation
[0] Message Index
[#] Next page
Go to full version