Preloader html outside body tag
-
Preloader html is added outside of
body
tag and causes error in html validation, also visible e.g. in Firefox “view source” Ctrl-u.Problem is in
header.php
<?php wp_head(); ?> </head> <?php if($show_preloader){ ?> <div class="page-loading"> <!-- #site-wrapper --> <div class="loader"></div> <span class="text">Loading...</span> </div> <!-- .page-loading ends --> <?php } ?> <body <?php body_class(); ?>>
Suggested fix: Move code inside
body
tag.lawyerfirm 1.0.4, WordPress 6.3.2
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Preloader html outside body tag’ is closed to new replies.