News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Adding Buttons to the menu in Subs.php

Started by greenlungs81, January 08, 2019, 11:17:58 PM

Previous topic - Next topic

greenlungs81

I'm trying to add a button to my smf menu but when i add it it just shows a blank spot in the bar the button works but its not showing the text its right beside forum. Here's the code i used


         'twitch_streams' => array(
            'title' => $txt['Twitch Streams'],
            'href' => 'https://greenlungs-community.000webhostapp.com/index.php?page=twitch_streams', [nofollow]
            'show' => true,
            'sub_buttons' => array(
            ),
         ),

Any idea Why its doing this? Its been a while since i messed with smf

Sir Osis of Liver

Just put the title in quotes, you're not using the $txt variable unless you add it to language file.



     'title' => 'Twitch Streams',

Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

greenlungs81


Advertisement: