php - Unwanted code in Wordpress -


i have strange message in header in wordpress. belows on navigation bar in wordpress. not know how fix code. people, please.. have installed plugins nothing new. problem has occurred today.

at first thought had syntax error tested code , ok.

for example: enter image description here whether problem in other file?

how can remove this? may have error in header.php...i dont know. header.php file:

<!doctype html>  <!--[if ie 7 ]>    <html <?php language_attributes(); ?> class="isie ie7 oldie no-js"> <![endif]-->  <!--[if ie 8 ]>    <html <?php language_attributes(); ?> class="isie ie8 oldie no-js"> <![endif]-->  <!--[if ie 9 ]>    <html <?php language_attributes(); ?> class="isie ie9 no-js"> <![endif]-->  <!--[if (gt ie 9)|!(ie)]><!--> <html <?php language_attributes(); ?> class="no-js"> <!--<![endif]-->  <head>  <!-- google tag manager -->  <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':  new date().gettime(),event:'gtm.js'});var f=d.getelementsbytagname(s)[0],  j=d.createelement(s),dl=l!='datalayer'?'&l='+l:'';j.async=true;j.src=  'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentnode.insertbefore(j,f);  })(window,document,'script','datalayer','gtm-w5fzjcf');</script>  <!-- end google tag manager -->    	<meta charset="<?php bloginfo( 'charset' ); ?>" />  	<?php is_dt_theme_moible_view(); ?>  <script charset="utf-8" src="//cdn.sendpulse.com/28edd3380a1c17cf65b137fe96516659/js/push/c62b1197420513c7a9c7298ef1e2bb6e_1.js" async></script>      	  	<meta name="author" content="designthemes">  	<title><?php dt_theme_public_title(); ?></title>    	<link rel="alternate" type="application/rss+xml" title="rss 2.0" href="<?php bloginfo('rss2_url'); ?>" />  	<link rel="profile" href="http://gmpg.org/xfn/11" />  	<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />    <?php  	global $dt_allowed_html_tags;  	#load theme styles...  	if(dt_theme_option('integration', 'enable-header-code') != '') echo '<script type="text/javascript">'.wp_kses(stripslashes(dt_theme_option('integration', 'header-code')), $dt_allowed_html_tags).'</script>';  	wp_head(); ?>    </head>    <body <!-- google tag manager (noscript) -->  <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=gtm-w5fzjcf"  height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>  <!-- end google tag manager (noscript) --> <?php if(dt_theme_option("appearance","layout") == "boxed") body_class('boxed'); else body_class(); ?>  	<?php if(dt_theme_option('general','loading-bar') != "true") echo '<div id="loader-wrapper"><div class="loader"><span class="fa fa-spinner fa-spin"></span></div></div>'; ?>  	<!-- **wrapper** -->  	<div class="wrapper">      	<div class="inner-wrapper">          	<!-- header-wrapper starts here -->  			<?php $htype = dt_theme_option('appearance','header_type'); $htype = !empty($htype) ? $htype : 'header1'; ?>          	<div id="header-wrapper" class="<?php if(dt_theme_option('general','header-top-bar') == "true") echo esc_attr('notop-bar'); if($htype == 'header3') echo esc_attr(' header3-wrapper'); ?>">              	<header id="header" class="<?php echo esc_attr($htype); ?>">  				<?php if(dt_theme_option('general','header-top-bar') != "true"): ?>                      <!-- top bar starts here -->                      <div class="top-bar">                          <div class="container">  							<?php if(dt_theme_option('general', 'top-bar-left-content') != null && $htype != 'header5'): ?>                                  <div class="dt-sc-contact-info">                                      <p><?php echo wp_kses(do_shortcode(stripslashes(dt_theme_option('general', 'top-bar-left-content'))), $dt_allowed_html_tags); ?></p>                                  </div>                              <?php elseif($htype == 'header5'):                              	echo do_shortcode('[dt_social/]');                              endif; ?>                              <div class="top-right">                                  <ul><?php  								if(function_exists("is_woocommerce")): ?>  									<li><a href="<?php echo wc()->cart->get_cart_url(); ?>" title="<?php _e( 'view shopping cart', 'iamd_text_domain' ); ?>"><span class="fa fa-shopping-cart"></span><?php echo sprintf (_n( '%d item', '%d items', wc()->cart->cart_contents_count ), wc()->cart->cart_contents_count ); ?> - <?php echo wc()->cart->get_cart_total(); ?></a></li><?php  								endif;  								if(!is_user_logged_in()):  									$loginurl = ( class_exists('c_ws_plugin__s2member_check_activation') ) ? wp_login_url() : wp_login_url(get_permalink()); ?>  									<li><a title="<?php _e('login', 'iamd_text_domain'); ?>" href="<?php echo $loginurl; ?>"><span class="fa fa-sign-in"></span><?php _e('member login', 'iamd_text_domain'); ?></a></li>  									<li><a title="<?php _e('register now', 'iamd_text_domain'); ?>" href="<?php echo wp_registration_url(); ?>"><span class="fa fa-user"></span><?php _e('register', 'iamd_text_domain'); ?></a></li><?php  								else: ?>  									<li><a title="<?php _e('logout', 'iamd_text_domain'); ?>" href="<?php echo wp_logout_url(get_permalink()); ?>"><span class="fa fa-sign-out"></span><?php _e('logout', 'iamd_text_domain'); ?></a></li>  									<li><a title="<?php _e('my profile', 'iamd_text_domain'); ?>" href="<?php   										$current_user = wp_get_current_user();  										echo get_edit_user_link($current_user->id); ?>"><span class="fa fa-dashboard"></span><?php _e('my profile', 'iamd_text_domain'); ?></a></li><?php  								endif; ?>                                  </ul>                              </div>                          </div>                      </div>                      <!-- top bar ends here -->                  <?php endif;  				if($htype == 'header3'): ?>                      <div id="logo"><?php                          if( dt_theme_option('general', 'logo') ):                              $template_uri = get_template_directory_uri();                              $url = dt_theme_option('general', 'logo-url');                              $url = !empty( $url ) ? $url : $template_uri."/images/logo.png";                                $retina_url = dt_theme_option('general','retina-logo-url');                              $retina_url = !empty($retina_url) ? $retina_url : $template_uri."/images/logo@2x.png";                                $width = dt_theme_option('general','retina-logo-width');                              $width = !empty($width) ? $width."px;" : "187px";                                $height = dt_theme_option('general','retina-logo-height');                              $height = !empty($height) ? $height."px;" : "49px";?>                              <a href="<?php echo esc_url(home_url());?>" title="<?php bloginfo('title'); ?>">                                  <img class="normal_logo" src="<?php echo esc_url($url);?>" alt="<?php bloginfo('title'); ?>" title="<?php bloginfo('title'); ?>" />                                  <img class="retina_logo" src="<?php echo esc_url($retina_url);?>" alt="<?php bloginfo('title'); ?>" title="<?php bloginfo('title'); ?>" style="width:<?php echo esc_attr($width);?>; height:<?php echo esc_attr($height);?>;"/>                              </a><?php                          else: ?>                              <div class="logo-title">                                  <h1 id="site-title"><a href="<?php echo esc_url(home_url()); ?>" title="<?php bloginfo('title'); ?>"><?php bloginfo('title'); ?></a></h1>                                  <h2 id="site-description"><?php bloginfo('description'); ?></h2>                              </div><?php                          endif; ?>                                                       </div>  					<div class="main-menu-container">                      	<div class="main-menu">                              <div id="primary-menu">                                  <div class="dt-menu-toggle" id="dt-menu-toggle"><?php _e('menu','iamd_text_domain'); ?><span class="dt-menu-toggle-icon"></span></div>                                  <nav id="main-menu">                                      <?php wp_nav_menu( array('theme_location' => 'primary-menu', 'container'  => false, 'menu_id' => 'menu-main-menu', 'menu_class' => 'menu', 'fallback_cb' => 'dt_theme_default_navigation', 'walker' => new dtfrontendmenuwalker())); ?>                                  </nav>                              </div>                          </div>                      </div><?php  				else: ?>  					<div class="main-menu-container">                      	<div class="main-menu">                              <div id="logo"><?php                                  if( dt_theme_option('general', 'logo') ):                                      $template_uri = get_template_directory_uri();                                      $url = dt_theme_option('general', 'logo-url');                                      $url = !empty( $url ) ? $url : $template_uri."/images/logo.png";                                            $retina_url = dt_theme_option('general','retina-logo-url');                                      $retina_url = !empty($retina_url) ? $retina_url : $template_uri."/images/logo@2x.png";                                            $width = dt_theme_option('general','retina-logo-width');                                      $width = !empty($width) ? $width."px;" : "187px";                                            $height = dt_theme_option('general','retina-logo-height');                                      $height = !empty($height) ? $height."px;" : "49px";?>                                      <a href="<?php echo esc_url(home_url());?>" title="<?php bloginfo('title'); ?>">                                          <img class="normal_logo" src="<?php echo esc_url($url);?>" alt="<?php bloginfo('title'); ?>" title="<?php bloginfo('title'); ?>" />                                          <img class="retina_logo" src="<?php echo esc_url($retina_url);?>" alt="<?php bloginfo('title'); ?>" title="<?php bloginfo('title'); ?>" style="width:<?php echo esc_attr($width);?>; height:<?php echo esc_attr($height);?>;"/>                                      </a><?php                                  else: ?>                                      <div class="logo-title">                                          <h1 id="site-title"><a href="<?php echo esc_url(home_url()); ?>" title="<?php bloginfo('title'); ?>"><?php bloginfo('title'); ?></a></h1>                                          <h2 id="site-description"><?php bloginfo('description'); ?></h2>                                      </div><?php                                  endif; ?>                                                                 </div>                              <div id="primary-menu">                                  <div class="dt-menu-toggle" id="dt-menu-toggle"><?php _e('menu','iamd_text_domain'); ?><span class="dt-menu-toggle-icon"></span></div>                                  <nav id="main-menu">                                      <?php wp_nav_menu( array('theme_location' => 'primary-menu', 'container'  => false, 'menu_id' => 'menu-main-menu', 'menu_class' => 'menu', 'fallback_cb' => 'dt_theme_default_navigation', 'walker' => new dtfrontendmenuwalker())); ?>                                  </nav>                              </div>                          </div>                      </div><?php  				endif; ?>  				</header>  			</div>    <?php putrevslider('slider1', 'homepage'); ?>
turned off plugins , appeared again.

if there show will.

thank in advance.

you can try inspecting message element developer tool of web browser see if there broken html code. here how in chrome https://developer.chrome.com/devtools


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -