• Hello,

    I’m working through the errors in w3 Validator and came accross a specific error for each page.

    ” Element h1 not allowed as child of element span in this context. ”

    The line it is referencing is the title header on every page:
    <span><h1>Resident Login</h1></span> </div>

    I need to find where in the code this is so that I can replace all of these spans with divs since you cannot have a block element inside of an inline element.

Viewing 1 replies (of 1 total)
  • Thread Starter kcicodingmgr1

    (@kcicodingmgr1)

    After hours finally found the mistake in the template code:

    Go to template-functions.php file and change the echo span(s) to be div instead of span.

    echo “<span><” . $atts[‘tag’] . “>” . $title . “</” . $atts[‘tag’] . “></span>”;

Viewing 1 replies (of 1 total)
  • The topic ‘h1 inside span element Validator Issues’ is closed to new replies.