News:

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

Main Menu

menu url

Started by Iviiik, January 28, 2016, 02:02:30 PM

Previous topic - Next topic

Iviiik

Hi, can you tell how can I change this

         // Begin SMFShop code
         // !!! Add subactions?
         'shop' => array(
            'title' => $txt['shop_menu_button'],     My text
            'href' => $scripturl . '?action=shop',      and my website www.xxxxx.com
            'show' => true,
         ),
         // End SMFShop code


I dont want edit language, just edit in subs.php


Iviiik

Quote from: Illori on January 28, 2016, 02:07:48 PM
have you read http://wiki.simplemachines.org/smf/Buttons_-_How_do_I_add_buttons_to_SMF_2.0 ?


yes, I saw it, but want edit like this

         'shop' => array(
            'title' => Home
            'href' => www.myweb.com
            'show' => true,
         ),

I want put url , without script etc

Kindred

why would you edit the SHOP menu item to be home?

Why not create your own HOME menu item, exactly as the wiki indicates how to do?
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Iviiik

Quote from: Kindred on January 28, 2016, 02:13:48 PM
why would you edit the SHOP menu item to be home?

Why not create your own HOME menu item, exactly as the wiki indicates how to do?

Its just sample

I want this
         'home' => array(
            'title' => 'Blog',
            'href' => "www.gopro-travel.net">,
            'show' => true,
            'sub_buttons' => array(
            ),

but this is wrong :-)

Kindred

well, you used double quotes for the URL.... try it with Single Quotes... and get rid of the extra > at the end of the line.

but again... why would you have the HOME action use the text "blog"?
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Advertisement: