Option to Dismiss and inline Advert

Posted in: Newspaper
Post count: 45

Hi

I used to have a bitton so people could dismiss an inline advert on my site, pretty sure the code I used was as below but now button shows up but when it is clicked noting happens…..ad code running after it, any suggestions?

<button onclick=”myFunction()”>Hide This Ad</button><div id=”myDIV”>

Thanks

Post count: 35449

Hi,
Normally, that code has a function and when you click on it that function should set a display non on that ad. Do you still have set the myFunction() function in the theme?
Also, do you see some errors in console when you click on button?
Thank you!

Post count: 45

Thanks Calin

Someone set this up for me so unsure if still there but I cannot find.

When button is clicked there are no errors, just nothing happens.

Is there a way you would reccommend to acheive what I am trying to do?

Thanks

Post count: 21065

Hello!

Please check if you have that code in the theme panel(custom code or analytics/js codes)

Thank you!

Post count: 45

Hi Bettina, thanks

Just checked, no code there….

Post count: 21065

Hello!

Then you need to write the code again there.

Thank you!

Viewing 6 posts - 1 through 6 (of 6 total)
The forum ‘Newspaper’ is closed to new topics and replies.