Replies: 0
I would like to add an icon before the notice text, however, there is no hook in the DOM tree that I could use. Is there any chance, you can add a span with id “cn-notice-icon” just before the “cn-notice-text” element? Simply put it within the “cookie-notice-container”, on same level as “cn-notice-text”. It does not need any styling, just a unique id.
My suggestion:
<div class="cookie-notice-container">
<span id="cn-notice-icon></span> <-- Add this please
<span id="cn-notice-text></span>
<span id="cn-notice-buttons"></span>
</div>
This way I can use custom CSS to style the icon without forking your plugin.
For users, who do not want any icon, the cookie notice does not change visually.