News:

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

Main Menu

How can I make this link an external one?

Started by Dwev, January 30, 2020, 03:35:33 PM

Previous topic - Next topic

Dwev

I've added a button to our forum with the following code:


'Shop' => array(
'title' => 'Shop',
'href' => 'https://shop.xxxxx.xxx',
'show' => true,
'sub_buttons' => array(
),
),

(the URL above is of course not the real URL)

It works like a charm, but it opens on the same window as the forum itself, and I would like it to open in a new tab or window.

Does anyone know how to change the above code to make this happen?

Shambles


'Shop' => array(
'title' => 'Shop',
'href' => 'https://shop.xxxxx.xxx',
                                'target' => '_blank',
'show' => true,
'sub_buttons' => array(
),
),

Dwev

Wow, talk about fast service!   😁

Thanks a lot, worked like a charm..!  👍

Shambles


Advertisement: