Quote

We're also available for Custom Joomla Development

Hire us now

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
       
  • Replied by admin on Saturday, February 23 2019, 03:42 AM · Hide· #1
    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"
    • paul.aptel - 3 weeks ago
      Hi, thanks for your responding, but I think that I need to add a "," at the end of the second line.

      It worked for my externals links, but for my Joomla internal links it's not working. I'm redirected to my login page (maybe it's a question of ACL inside my joomla, I'm looking into it)...
    • admin - 2 weeks ago
      Ah ok. So, is your problem resolved now?
    Please post rating at the Joomla! Extensions Directory - http://extensions.joomla.org/profile/profile/details/264
  •  
  • Replied by paul.aptel on Tuesday, February 26 2019, 09:37 AM · Hide· #2
    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..
  •  
  •  
    Replied by admin on Tuesday, February 26 2019, 09:58 AM · Hide· #3
    Ah I see. Then you will need some custom modifications for that purpose.
    Please post rating at the Joomla! Extensions Directory - http://extensions.joomla.org/profile/profile/details/264
Your Response
Please login first in order for you to submit comments