Advertisement:

New tab or window in button URL

Aloittaja irondutchess, elokuu 10, 2013, 06:36:22 AP

« edellinen - seuraava »

irondutchess

I used the tutorial in 'Tips and Tricks' to add a new button to the menu and made a social.gif button.  This works very well and social.gif displays okay, and link to /social/index.htm works okay.

How do I change the code below to get /social/index.htm to open in a new tab or window?

'social' => array(
'title' => $txt['social'],
'href' => '/social/index.htm',
'show' => true,
'sub_buttons' => array(
),
),


Nell Bryden Fans [nofollow] Site where new menu item has been added.

TIA
Chris

Kays

Hi, this should do it. :)


'social' => array(
'title' => $txt['social'],
'href' => '/social/index.htm',
'show' => true,
                                'target' => '_blank',
'sub_buttons' => array(
),
),

If at first you don't succeed, use a bigger hammer. If that fails, read the manual.
My Mods

irondutchess

And it did  :)

Many thanks.

Just have to get the social networking software up and running now  ???    "My brain hurts"  :laugh:

Kays

Great, the best of luck with your site. :)

I'll mark this as solved then.

If at first you don't succeed, use a bigger hammer. If that fails, read the manual.
My Mods

Advertisement: