Support Forums

Support Offline : Mon - Fri / 10am - 6pm (GMT +6)

Your Time: Our Time:

Button shortcode opens a new window even target="_self" is set.

Featured Lock Resolved Bug
Hello,
I use button shortcode.
[button size="small" type="info" link="index.php?Itemid=109" target="_self"]VOIR D'AUTRES PUBLICATIONS[/button]
Even when target="_self" is set, it still opens a new window.
I have read a similar question in forum but there was no answer in the posts.
Thank you for your help.

5 Answers

Rifat Wahid Alif - Staff

More than a month ago #Permalink
Hi,
Please open the following file plugins/system/helix/shortcodes/button.php on 19 no line replace this following code:

return '<a href="' . $link . '" target="'.$target.'" class="btn btn-' . $type . ' btn-' . $size . '" >' . do_shortcode($content) . '</a>';


and use shortcode like this:

[button type="primary" size="mini" link="http://joomshaper.com" target="_self"]Click Here[/button]


- Thanks

Hoa Rossi

More than a month ago #Permalink
Hi,
In my file plugins/system/helix/shortcodes/button.php, line 19 is
return '<a href="' . $link . '" target="'.$target.'" class="btn btn-' . $type . ' btn-' . $size . '" >' . do_shortcode($content) . '</a>';

Do I have to replace
target='.$target. '
by
target='_self'

How to manage when I need a parent target ?

Thank you for your help !

Rifat Wahid Alif - Staff

More than a month ago #Permalink
Hi,
You can just replace this code:

target="'.$target.'"


- Thanks

Hoa Rossi

More than a month ago #Permalink
Hi,
By what do I have to replace ?
Thanks !

Rifat Wahid Alif - Staff

More than a month ago #Permalink
Hi,
It will be better if you could pm me your FTP & admin access then i could fix it.

- Thanks


There are no replies made for this post yet.
Be one of the first to reply to this post!

Leaderboard (30 days)

Paul Frankowski

Paul Frankowski

Total Accepted Answers: 133
Sifat

Sifat

Total Accepted Answers: 92
Toufiq

Toufiq

Total Accepted Answers: 50
Pavel

Pavel

Total Accepted Answers: 6
Sohan

Sohan

Total Accepted Answers: 5

114

Templates

293003

Community Users

Newsletter

Don’t miss any updates of our new templates and extensions and all the astonishing offers we bring for you.
We never spam

Joomla! ® name is used under a limited license from Open Source Matters in the United States and other countries. JoomShaper.com is not affiliated with or endorsed by Open Source Matters or the Joomla! Project.

Connect Us