• 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.

    • This topic was modified 1 year, 8 months ago by antonicofr.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator Jose Castaneda

    (@jcastaneda)

    THEME COFFEE MONKEY

    Hi there,

    What theme are you using? I’m very curious to know what could be causing that.

    Thread Starter antonicofr

    (@antonicofr)

    Effectively twentytwentythree

    Moderator Jose Castaneda

    (@jcastaneda)

    THEME COFFEE MONKEY

    That’s a little odd. What plugins are active?

    I’d say deactivate them all, then see if that still happens, if it does there is some weird stuff going on; if it doesn’t happen it means a plugin is causing that extra markup.

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.