Support » Plugin: GDPR Cookie Consent » Add in accessibility landmarks

  • Resolved adamnicolson

    (@adamnicolson)



    Hi. Please, can you tell me if you are planning on making your markup more accessibility friendly? Perhaps by simply changing the wrapping div to be an aside or just add an aria-label attribute to denote the block.

    If not, would you be able to advise if there is a function I can write to hook into your markup output?

    Many thanks – Adam

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author webtoffee

    (@webtoffee)

    Hi @adamnicolson

    Our plugin support inclusion of HTML. You can add HTML markup via Cookie Law Settings -> Customise Cookie Bar -> Message.

    Also as assessed the plugin does not have a provision to alter the wrapping div. On the other hand you can customise the cookie bar wrapping div by adding the custom css as indicated below.

    #cookie-law-info-bar{
    /*Your code goes here*/
     }

    Hope this helps.

    Hi @webtoffee

    Your support for HTML seems to be restricted to <div> and classes only. I’ve tried to wrap the content in a <footer> tag or add role=”contentinfo” to a div but both will not save.

    Perhaps your plugin should give the option to inject the markup inside of a specific object, then I wouldn’t need to change the internal makeup.

    Or alternatively, consider allowing html5 syntax in tour ‘Message’ box.

    Thanks – Adam

    Plugin Author webtoffee

    (@webtoffee)

    Hi @adamnicolson,

    Currently, we only support HTML tags. You can access the full list of supported tag from the allowed_html function in the file: wp-content/plugins/cookie-law-info/includes/class-cookie-law-info.php

    We will add HTML5 support to plugin development backlog and consider for future update release.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.