Missing header and wordpress footer after insert script after body
-
Hi,
Theme: OceanWP child
Page builder: Elementor PRO
Wordpress ver: 5.5.3
Operating System: Linux
Software: nginx/1.14.1
MySQL version: MySQL Community Server – GPL v8.0.21
PHP Version: 7.2.24I have a problem after I add a Google Tag Manager (GTM) noscript immediately after the opening body tag (as recommended by Google) then my front-end header and WordPress menubar are missing. While I open the Elementor’s header template it also said the content area was not found. The issue persists, the header and menubar will reappear after I remove the GTM’s noscript.
This is my body tag on header.php child theme:
<body <?php body_class(); ?> <?php oceanwp_schema_markup( ‘html’ ); ?>><?php wp_body_open(); ?>
<?php do_action( ‘ocean_before_outer_wrap’ ); ?>
<div id=”outer-wrap” class=”site clr”>
<?php oceanwp_theme_strings( ‘owp-string-header-skip-link’, ‘oceanwp’ ); ?>
<?php do_action( ‘ocean_before_wrap’ ); ?>
<div id=”wrap” class=”clr”>
<?php do_action( ‘ocean_top_bar’ ); ?>
<?php do_action( ‘ocean_header’ ); ?>
<?php do_action( ‘ocean_before_main’ ); ?>
<main id=”main” class=”site-main clr”<?php oceanwp_schema_markup( ‘main’ ); ?> role=”main”>
<?php do_action( ‘ocean_page_header’ ); ?>
Did I do anything wrong? What workaround for this issue?
Thanks, looking forward for OceanWP team reply
P.S. I’m not interested OceanWP hook extension yet
- The topic ‘Missing header and wordpress footer after insert script after body’ is closed to new replies.