How can I customize the PopUp Card so that it behaves like a popup banner (that is clickable) without having the card message section. I also want to be able to specify which particular link is attached to the Pop Up Card.
At the moment, it is not possible to specifically add a link to the Pop Up Card image, even
Regards
Hi Damila,
To resolve this issue, please follow the steps here:
1. Open the dw-popup-card-option.php file in plugins/dw-popup-card folder, find the code below (around line 9):
function dwcm_settings_params(){
$dwcm_settings_array = array(
// General settings
and change it into this:
function dwcm_settings_params(){
$dwcm_settings_array = array(
// General settings
'dwcm_card_link',
– Then, find the code below (around line 45):
<h3><?php _e('Message settings','dwcm') ?></h3>
<table class="form-table">
and change it into this:
<h3><?php _e('Message settings','dwcm') ?></h3>
<table class="form-table">
<tr valign="top">
<th scope="row"><?php _e('Link','dwcm') ?></th>
<td>
<input class="regular-text" type="text" name="dwcm_card_link" value="<?php echo get_option('dwcm_card_link'); ?>" />
</td>
</tr>
2. Open the dw-popup-card.php file in plugins/dw-popup-card folder, find the code below (around line 42):
function dw_christmas_markup(){
$dwcm_options = array();
and change it into this:
function dw_christmas_markup(){
$dwcm_options = array();
$dwcm_options['dwcm_card_link'] = dwcm_get_option('dwcm_card_link');
– Then, find the following code (around line 158):
<div class="dw-popup-card-cover"></div>
and change it into this:
<div class="dw-popup-card-cover">
<?php if($dwcm_options['dwcm_card_link'] != '') { ?>
<a href="<?php echo $dwcm_options['dwcm_card_link'] ?>" style="width:100%;height:100%;display:block;"> </a>
<?php } ?>
</div>
3. Open the cards.js file in plugins/dw-popup-card/assets/js folder, find the code below (around line 13):
$cardview.on( 'click', function() {
and change it into this:
$cardview.on( 'click', function() {
return true;
After follow there steps above, you’ll have an option to insert a link to the popup banner: Hope that helps!
Yes it works the way you have suggested.
Thanks.
Please login or Register to submit your answer
replied 11 years ago
pop up