2017-07-27 1 views
0

Wordpressのヘッダーに奇妙なメッセージがあります。それはwordpressの私のナビゲーションバーの下にある。私はコードを修正する方法を知らない。人々を助けてください.. 私はプラグインをインストールしましたが、新しいものはありません。問題は今日起こった。ワードプレスの不要なコード

最初は文法エラーがあると思っていましたが、コードをテストしても問題ありません。

例: enter image description here 問題が他のファイルにあるかどうかを確認します。

どうすれば削除できますか? header.phpにエラーがあるかもしれません...私は知らない。私のheader.phpのファイルです :

<!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 --> 
 

 
\t <meta charset="<?php bloginfo('charset'); ?>" /> 
 
\t <?php is_dt_theme_moible_view(); ?> 
 
<script charset="UTF-8" src="//cdn.sendpulse.com/28edd3380a1c17cf65b137fe96516659/js/push/c62b1197420513c7a9c7298ef1e2bb6e_1.js" async></script> 
 

 

 
\t 
 
\t <meta name="author" content="designthemes"> 
 
\t <title><?php dt_theme_public_title(); ?></title> 
 

 
\t <link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<?php bloginfo('rss2_url'); ?>" /> 
 
\t <link rel="profile" href="http://gmpg.org/xfn/11" /> 
 
\t <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" /> 
 

 
<?php 
 
\t global $dt_allowed_html_tags; 
 
\t #Load Theme Styles... 
 
\t 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>'; 
 
\t 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(); ?> 
 
\t <?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>'; ?> 
 
\t <!-- **Wrapper** --> 
 
\t <div class="wrapper"> 
 
    \t <div class="inner-wrapper"> 
 
     \t <!-- header-wrapper starts here --> 
 
\t \t \t <?php $htype = dt_theme_option('appearance','header_type'); $htype = !empty($htype) ? $htype : 'header1'; ?> 
 
     \t <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'); ?>"> 
 
      \t <header id="header" class="<?php echo esc_attr($htype); ?>"> 
 
\t \t \t \t <?php if(dt_theme_option('general','header-top-bar') != "true"): ?> 
 
        <!-- Top bar starts here --> 
 
        <div class="top-bar"> 
 
         <div class="container"> 
 
\t \t \t \t \t \t \t <?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'): 
 
          \t echo do_shortcode('[dt_social/]'); 
 
          endif; ?> 
 
          <div class="top-right"> 
 
           <ul><?php 
 
\t \t \t \t \t \t \t \t if(function_exists("is_woocommerce")): ?> 
 
\t \t \t \t \t \t \t \t \t <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 
 
\t \t \t \t \t \t \t \t endif; 
 
\t \t \t \t \t \t \t \t if(!is_user_logged_in()): 
 
\t \t \t \t \t \t \t \t \t $loginurl = (class_exists('c_ws_plugin__s2member_check_activation')) ? wp_login_url() : wp_login_url(get_permalink()); ?> 
 
\t \t \t \t \t \t \t \t \t <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> 
 
\t \t \t \t \t \t \t \t \t <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 
 
\t \t \t \t \t \t \t \t else: ?> 
 
\t \t \t \t \t \t \t \t \t <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> 
 
\t \t \t \t \t \t \t \t \t <li><a title="<?php _e('My Profile', 'iamd_text_domain'); ?>" href="<?php 
 
\t \t \t \t \t \t \t \t \t \t $current_user = wp_get_current_user(); 
 
\t \t \t \t \t \t \t \t \t \t echo get_edit_user_link($current_user->ID); ?>"><span class="fa fa-dashboard"></span><?php _e('My Profile', 'iamd_text_domain'); ?></a></li><?php 
 
\t \t \t \t \t \t \t \t endif; ?> 
 
           </ul> 
 
          </div> 
 
         </div> 
 
        </div> 
 
        <!-- Top bar ends here --> 
 
       <?php endif; 
 
\t \t \t \t 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/[email protected]"; 
 

 
          $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> 
 
\t \t \t \t \t <div class="main-menu-container"> 
 
        \t <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 
 
\t \t \t \t else: ?> 
 
\t \t \t \t \t <div class="main-menu-container"> 
 
        \t <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/[email protected]"; 
 
    
 
            $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 
 
\t \t \t \t endif; ?> 
 
\t \t \t \t </header> 
 
\t \t \t </div> 
 

 
<?php putRevSlider('slider1', 'homepage'); ?>
は、私はすべてのプラグインをオフにし、それが再び登場しました。

私はそれを表示する何かがある場合。

ありがとうございます。

+0

テーマのおそらく何か、ページのソースコードを見て、 'no-customize-support'を探して、それが所属するコンテナを確認し、おそらくあなたがテンプレートから削除できるものです。 –

答えて

0

Webブラウザの開発者ツールからmessage要素を調べて、壊れたhtmlコードがあるかどうかを調べることができます。ここでは、Chromeでそれを行う方法ですhttps://developer.chrome.com/devtools

関連する問題