Bapman
-
Posts
2 -
Joined
-
Last visited
Posts posted by Bapman
-
-
Hello,
I have the same issue than this support question :
Except that, for me, empty banners are an issue in terms of CSS. Indeed I want to add padding around banners, but not when they are empty.
Right now I am using the fields to add HTML code before and after the banner but this is extra work for my customer who is managing the ads.
A simple feature would be to add some attribute to the <ins> tag generated by Revive so that my PHP code can parse it and detect an empty banner.
For example : <ins data-revive-zoneid="31" ... data-revive-empty="1" style="text-decoration: none;"></ins>
Would it be possible?
How to get the new "revive-<ID>-loaded" custom JS event?
in For Developers
Posted · Edited by Bapman
typo
Hello,
I am very much interested in this new feature described in v5.4.0 changelog:
Asynchronous tag now sends a custom "revive-<ID>-loaded" JS event when loading each banner and a "revive-<ID>-completed" event when all the positions on the page have been filled. This allows interaction and customisation, e.g. dynamically adding a class to all image banners.
So I updated to v5.4.1. But when I look at my asynchronous tag, I do not see any event thrown by it.
I was looking at the <ins> tag or the child elements in Chrome Dev tools (selecting the element then tab "Event Listeners").
However, looking at the ancestors, I do see "revive-myReviveID-refresh" and "revive-myReviveID-start" events.
Any help would be highly appreciated!