Floating buttons target _blank

Hello,

I'm trying to open the button url to a new window, but I don't know where to look to add in the html "target=_blank",

Paul
5 years 10 months ago #1 by aptel

Please Log in or Create an account to join the conversation.

  • Posted by TemplatePlazza (5261) Offline
Hi, sorry for delay in responding.
For that, you need to edit the file : ../modules/mod_floating_buttons/tmpl/default.php
at lines 26 you will see this code:
"icon":"<?php echo $item->child_item_icon; ?>"
change that to :
"icon":"<?php echo $item->child_item_icon; ?>",
                "target":"_blank"
5 years 10 months ago #2 by TemplatePlazza

Please Log in or Create an account to join the conversation.

So, now all the links I have can be opened in a new window.

But in the floating buttons module I have internal links and external links. I would like that my external links are opened in a new window and my internal links in the same window..
5 years 9 months ago #3 by aptel

Please Log in or Create an account to join the conversation.

  • Posted by TemplatePlazza (5261) Offline
Ah I see. Then you will need some custom modifications for that purpose.
5 years 9 months ago #4 by TemplatePlazza

Please Log in or Create an account to join the conversation.

Hello,

Same question, i have internal and external links.
Dispite the fact that your extension is free and answered nicely to my needs, it really miss the target option.
Do you intend to add that or do we have to manage it ?

Thanks a lot for your work and your answers !

Nicolas
4 years 2 weeks ago #5 by NicolasJ

Please Log in or Create an account to join the conversation.

  • Posted by TemplatePlazza (5261) Offline
Hi Nicolas, yes you will need some custom modifications for that purpose
4 years 2 weeks ago #6 by TemplatePlazza

Please Log in or Create an account to join the conversation.

Powered by Kunena Forum