php - wp_head loads into body tag in Wordpress -
i have wordpress site , morning have noticed wp_head() outputs content body tag.
here code of header.php
<!doctype html> <html <?php language_attributes(); ?>> <head> <meta charset="<?php bloginfo( 'charset' ); ?>"> <meta name="viewport" content="width=device-width"> <title><?php wp_title( '|', true, 'right' ); ?></title> <link rel="profile" href="http://gmpg.org/xfn/11"> <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>"> <script>(function() { var _fbq = window._fbq || (window._fbq = []); if (!_fbq.loaded) { var fbds = document.createelement('script'); fbds.async = true; fbds.src = '//connect.facebook.net/en_us/fbds.js'; var s = document.getelementsbytagname('script')[0]; s.parentnode.insertbefore(fbds, s); _fbq.loaded = true; } _fbq.push(['addpixelid', '288349034671441']); })(); window._fbq = window._fbq || []; window._fbq.push(['track', 'pixelinitialized', {}]); </script> <noscript><img height="1" width="1" alt="" style="display:none" src="https://www.facebook.com/tr?id=288349034671441&ev=noscript" /></noscript> <script type="text/javascript"> /* <![cdata[ */ var google_conversion_id = 972030957; var google_custom_params = window.google_tag_params; var google_remarketing_only = true; /* ]]> */ </script> <script type="text/javascript" src="//www.googleadservices.com/pagead/conversion.js"> </script> <noscript> <div style="display:inline;"> <img height="1" width="1" style="border-style:none;" alt="" src="//googleads.g.doubleclick.net/pagead/viewthroughconversion/972030957/?value=0&guid=on&script=0"/> </div> </noscript> <?php wp_head(); ?> </head> <body <?php body_class(); ?>> <div id="page" class="hfeed site"> <?php do_action( 'before' ); ?> <header id="masthead" class="site-header" role="banner"> <div class="container"> <div class="row"> <div class="site-branding col-sm-4"> <h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><img src="<?php echo home_url(); ?>/wp-content/uploads/2014/06/logo-nov-.png" alt="<?php bloginfo( 'name' ); ?>"/></a></h1> </div> <div class="col-sm-8 mainmenu"> <div class="mobilenavi"></div> <?php wp_nav_menu( array( 'container_id' => 'submenu', 'theme_location' => 'primary','container_class' => 'topmenu','menu_id'=>'topmenu' ,'menu_class'=>'sfmenu' ) ); ?> </div> </div> <!-- end row --> </div> </header><!-- #masthead --> <?php if( is_page_template('homepage.php') ){ get_template_part( 'inc/feature' ); } ?> <div id="content" class="site-content "> i have tried removing remarketing tags, makes no difference. have tried disabling plugins, , still no go
ok, according matt gibson comment, have found solution. not perfect one, solution works.
i have moved wp_head() up, right after <link rel="pingback">... ant works now.
php wordpress
No comments:
Post a Comment