Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 504799

Feature Request: Add CSS hook to add icon

$
0
0

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.


Viewing all articles
Browse latest Browse all 504799

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>