Author Topic: Wanna add/remove extra menu buttons after "home" on smf Navigation bar?  (Read 677 times)

0 Members and 1 Guest are viewing this topic.

Online obasimiracle

  • Support Expert
  • *****
Just felt like sharing this after redirecting my homepage obasimvilla.com to the forum 'cos the need for me to add individual pages arose .

Of-course it wasn't a problem as I've have been very good with smf . There are basically many ways you can achieve this especially by using mod (regular users ) or custom editing (super users). There are many modification (mod) you can use to achieve this but I will be talking of one that is very easy and needs no advance knowledge of smf platform.

Custom action mod can be used to create custom individual pages in smf  , can be used as well to create single php shopping , html pages , adverts and etc. all you need do is download the latest version of custom action mod from smf mod site , install and add action via admin=> Features and options => new action

If what you need is just to add "blog"  "link" etc. to your smf site just read on.

Firstly, log in to your cpanel => Go to: Sources => Locate Subs.php => Download and edit with any website editing app, notepad or default cpanel editor


Find:
Code: [Select]
'home' => array(
            'title' => $txt['home'],
            'href' => $scripturl,
            'show' => true,
            'sub_buttons' => array(
            ),
         ),
         'help' => array(
            'title' => $txt['help'],
            'href' => $scripturl . '?action=help',
            'show' => true,
            'sub_buttons' => array(
            ),
         ),
Assuming you wanna add your next link immediately after "home" just place
Code: [Select]
),
         'Blog' => array(
            'title' => 'Blog',
            'href' => 'http://www.obasimvilla.com/blog',
            'show' => true,
            'sub_buttons' => array(
            ),
below (immediately after)
Code: [Select]
'sub_buttons' => array(
            ),

or any other you wanna do so . follow same instruction to remove anyone you wanna remove
Wisdom pays! Be wise!

 

* Post Updates

Re: Office 365 Backup Tool by AlbertTaylor
[October 23, 2020, 01:06:23 PM]


Re: How to split large PST files by date ? by merry smith
[October 21, 2020, 10:33:14 AM]


Re: How to join multiple PST Files ? by merry smith
[September 28, 2020, 01:20:40 PM]

Inside: 3P Techies Blog

* Newest Techies

Get Updates


Sign up to get latest updates delivered to your inbox. No Spam, We Promise!

Get Hosting!

a Faster web hosting service

Copyright 3rd Planet Techies. All rights Reserved.

Top || Mobile ||Advertise || Contact Us || Privacy