• Resolved Gecko

    (@gecko1952)


    I’m using a Customizr child theme and I get the following warning error when trying to validate:
    “Warning: The banner role is unnecessary for element header.”
    W3 dot com validator link
    I chased down the file that is loading the offending header element and it’s the header.php file in the parent Customizr theme Version: 3.5.11.

    How can I add the edited offending header element to my child theme?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter Gecko

    (@gecko1952)

    Well the quick and easy resolution was to just copy the header.php file into my child theme and edit accordingly, it now passes validation. But I really dislike this type of fix, as the header.php file in the parent Customizr theme could change in a future update thus causing more issues later.

    After doing some research (see the ARIA documentation) the <header> element includes a role=banner attribute by default so using the roll=”banner” ARIA within the header element throws the warning error.

    This is a default unedited Customizr theme, updated to v3.5.11 on 4-21-2017. So it really needs to be addressed by the developers. Hopefully this issue will be fixed in the next Customizr update.

    • This reply was modified 7 years, 10 months ago by Gecko.
    • This reply was modified 7 years, 10 months ago by bdbrown.

    Hi,

    In order to get the developers’ attention. Please make an issue report on Customizr theme’s github.
    https://github.com/presscustomizr/customizr/issues

    Thank you

    Thread Starter Gecko

    (@gecko1952)

    Thank you Denzel for pointing me in the right direction to report this issue, it’s done.

    You are welcome.
    Thank you.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Validation Warning’ is closed to new replies.