• Resolved shivaji


    We have a WCAG AA validated page and after installing your plugin, it is showing one warning. I found that all your code gets inserted after </footer> tag.

    All page content must be contained by landmarks. 1 Element impacted.

    Ensures all page content is contained by landmarks

    <div id=”cookie-law-info-bar” data-nosnippet=”true” data-cli-style=”cli-style-v2″ style=”background-color: rgb(255, 255, 255); color: rgb(0, 0, 0); font-family: inherit; bottom: 0px; position: fixed; display: block;”>

    They explained this here: https://dequeuniversity.com/rules/axe/4.0/region?application=axe-puppeteer

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter shivaji


    Temporarily, I have fixed this warning by adding landmark </footer> below wp_footer() on footer.php file in our custom theme.
    <?php wp_footer(); ?>

    One more Error get highlighted by https://validator.w3.org/ : –

    Error: Element div not allowed as child of element span in this context. (Suppressing further errors from this subtree.) From line 657, column 80; to line 657, column 123

    <!–googleoff: all–><div id=”cookie-law-info-bar” data-nosnippet=”true”><span><div class=”cli-bar-container cli-style-v2″><div class=”cli-bar-message”>

    I have noticed one <SPAN> tag get inserted.

    Thread Starter shivaji


    Sorry again, I found an easy fix for this. This file cookie-law-info\public\class-cookie-law-info-public.php, line no. 323 consist of <SPAN>. So rather than removing the code from the plugin, I updated the Privacy text from
    Dashboard > GDPR Cookie Consent > Settings> Customize Cookie Bar > Message >

    and replaced all DIV with SPAN and its validated HTML.

    Plugin Author webtoffee


    Hi @shivaji,

    Good to see that you have found the solution. Let us know if anything else.

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