Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Maeve Lander

    (@enigmaweb)

    Hi wpshiran, please could you clarify your question? I’m afraid I don’t understand what you’re asking.

    I think he means target=”_blank” or some way to open a link in a new tab rather than leaving the current website.

    Plugin Author Maeve Lander

    (@enigmaweb)

    Thanks Jason, you’re probably right!

    It’s not an option in the plugin settings but if there was a really good reason you need to have button links open in new tab you could add target=”_blank” to the button links in the plugin file /ssb-ui.php line 343

    Thanks – Also I think since the contact numbers and email are for the actual website it makes sense that they open in a new tab on the existing site. I’d rather have it as the default.

    Q= Would it look like this – syntax? or something different?
    [‘btn_link’][‘target=’_blank’];

    or

    [‘btn_link’][‘target=”_blank”];

    • This reply was modified 7 years, 8 months ago by Jason Kemp.
    • This reply was modified 7 years, 8 months ago by Jason Kemp.
    • This reply was modified 7 years, 8 months ago by Jason Kemp.
    Plugin Author Maeve Lander

    (@enigmaweb)

    Well as telephone numbers would typically have the tel: and email the mailto: protocols they would open the user’s email client or phone function retrospectively (especially on mobile devices) which is the required functionality. It is not good practise to force links to open in new tabs as a general rule, hence why I have not hardcoded it to target=”_blank” in the plugin. But if you want to do that for some reason then you can add the target attribute: https://www.w3schools.com/tags/att_a_target.asp
    You’ll need to add it in the plugin file /ssb-ui.php line 343

    I used the tel: users complained so I suggested they try looking on a phone LOL. Browsers all work differently opening Facetime or another app is ok too.

    I know the syntax for web but in PHP I am not sure how that gets added. Clients ask for it though ??

    Plugin Author Maeve Lander

    (@enigmaweb)

    It would become:

    <a href="<?php echo $this->buttons['btns'][ $btn_id ]['btn_link']; ?>" target="_blank">

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Blank Page’ is closed to new replies.