Expand my Community achievements bar.

SOLVED

Close button on pop up in Target Activity

Avatar

Level 1

Hi,

 

I am trying to create a pop up using lightbox template code provided in this link : https://github.com/Adobe-Marketing-Cloud/target-experience-templates/tree/master/lightbox

I have been able to do required customizations i.e. apply CSS , change text however, i need a close button to be present at top right corner instead of closing on background click. I tried many things but none of that seem to work. Can anyone please help? I am trying to create a button with class="close" and id=att_lightbox_close but it's not working.

<button type="button" class="close" aria-label="Close">
<span aria-hidden="true">×</span>
</button>

 

 

 

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

alexbishop_0-1678889902034.png

I've highlighted what can be added to the html template part of the code, in order to close the lightbox based on "Close" button click instead of background click. Note: the original "No Thanks" button is also removed

View solution in original post

1 Reply

Avatar

Correct answer by
Employee Advisor

alexbishop_0-1678889902034.png

I've highlighted what can be added to the html template part of the code, in order to close the lightbox based on "Close" button click instead of background click. Note: the original "No Thanks" button is also removed