We’re with you. JoomShaper is offering a 20% Discount on all plans due to the impact of COVID-19.

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

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

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

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!

124

Templates

331383

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