TELL Communications Limited
asked 10 years ago

I am trying to make sure that the link used with the PopUp Card is then opened in a new window once the user clicks on the Is there a php file which I can edit such that I make sure the “Pop Card” opens in a new window once a user clicks on it.
I observed from somewhere that maybe I can add target=”_blank” to where (in a php file) the link is being constructed.
PromoBar currently has the option of opening the clicked link in another window but it seems Pop Card does not.
Is there a recommended work-around for PopUp Card in regards opening the link in a new window.
Regards

damilarelana
replied 10 years ago

Am using DW Focus theme by the way … just in case you need to know that information …

2 Answers
Kido D
answered 10 years ago

Hi there,
Since the DW Popup Card plugin is using the default WordPress Editor for the card message, you can follow the steps in the screenshot here to make a link open in new windows: http://i.imgur.com/weOSDmw.png
Hope this helps!

damilarelana
replied 10 years ago

Thanks for the reply …
The suggested solution does not apply to my problem because am not using the “Card Message” part of the plugin.
The popcard has been modified (as previously suggested by DesignWall) so as to allow a direct clickable link from the banner without going to through the “Card Message” stage

Kido D
answered 10 years ago

Ah, thanks for the clarification! So, please open up the dw-popup-card.php file in plugins/dw-popup-card folder, find the code below:

<a href="<?php echo $dwcm_options['dwcm_card_link'] ?>" style="width:100%;height:100%;display:block;">&nbsp;</a>

… and change it into this:

<a target="_blank" href="<?php echo $dwcm_options['dwcm_card_link'] ?>" style="width:100%;height:100%;display:block;">&nbsp;</a>

Hope this helps!

Powered by DW Question & Answer Pro