Author Topic: Wanna add/remove extra menu buttons after "home" on smf Navigation bar?  (Read 762 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!

 

I wanna Move from blogger to WordPress

Started by Guest Users

Last post August 28, 2018, 02:03:19 AM
by obasimiracle

* Newest Techies

Inside: 3P Techies Blog

Get Updates


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


Copyright 3rd Planet Techies. All rights Reserved.

Top || Mobile || Privacy