wp_footer hooks happens after the footer. Also extra tag Before header.
-
Block based theme. No index.php No page.php. (based on twentytwentythree heavily)
Problem 1: extra <body> tag opens before the header.
Problem 2: extra </body> tag after the footer. wp_footer actions hook after footer.
I suspect this extra body is what causes the wp_footer actions problem.
Header and Footer calls:
<!-- wp:template-part {"slug":"header"} /-->
<!-- wp:template-part {"slug":"footer"} /-->
header: <header></header><body>. footer: </body><footer></footer></html>. or </body><footer></footer>.
Tried a few combinations without success.
Yet everything on the wp_footer action hooks after it;
This causes problems and messes everything up.
Don’t really know where the extra <body></body> is coming from since no index.php nor page.php is being used.
Help me fix this please.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘wp_footer hooks happens after the footer. Also extra tag Before header.’ is closed to new replies.