Accessibility – First heading is not an other than home page

Home Forums Polyclinic Accessibility – First heading is not an other than home page

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #21016

    pm
    Participant

    Accessibility – First heading is not an other than home page

    Resolved

    Hey there! Have you noticed this support service is provided FREE of charge?
    If you like the speed and accuracy of resolutions, please consider supporting me with a small donation. Thank you

    Consider a donation →

    Trying to pass accessibility test. I’m receiving an error that the <h1) tag is not the first heading on pages other than the home page. It’s pointing to the area up by the logo. I’ve attached a screenshot of the issue.

    #21023

    Oliver Juhas
    Keymaster

    Hi pm,

    There is a H2 set for the logo on non-home pages. This is not an accessibility issue, however. You can actually test your website with other accessibility evaluation tools and you will see none of them reports this being an accessibility error.

    But if you really need to get rid of the H2 heading in website logo, you can use this code in your child theme‘s functions.php file:

    child_theme_get_the_logo( $output ) {
    	$output[10] = str_replace( 'h2', 'span', $output[10] );
    	return $output;
    }
    add_filter( 'wmhook_polyclinic_tf_get_the_logo_output', 'child_theme_get_the_logo' );

    Best regards,

    Oliver Juhas
    WebMan Design

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.