Jump to content

Add an attribute to the <ins> tag in order to detect if empty


Recommended Posts


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?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...