文本出现在我的 wordpress 网站的左上角 [英] text is appearing at the top left of my wordpress site

查看:26
本文介绍了文本出现在我的 wordpress 网站的左上角的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经看到了一些关于此的主题,但到目前为止还没有看到任何对我有用的解决方案.

I have seen a few threads about this but have not seen any solutions that have worked for me so far.

我的 wordpress 网站 (www.strantech.com) 似乎在每个页面的左上角显示绝对不应该在那里的代码.我假设有一个间距问题,我作为新手编码员无法发现.

My wordpress site (www.strantech.com) appears to be showing code at the top left on every page that definitely should not be there. I am assuming there is a spacing issue that I cannot spot as a novice coder.

从其他董事会的建议来看,这似乎与标题中的问题有关.

From what the other boards suggested, it seems to be related to an issue in the header.

为了您的方便,我在下面粘贴了我的标题.

I have pasted my header below for your convenience.

<head>
<meta charset="<?php bloginfo( 'charset' ); ?>" />
<meta name="viewport" content="width=device-width" />
<meta HTTP-EQUIV="Pragma" content="no-cache">
<meta HTTP-EQUIV="Expires" content="-0">
<title><?php wp_title( '|', true, 'right' ); ?></title>
<!-- Favicon -->
<link rel="shortcut icon" href="/favicon.ico" />
<link rel="profile" href="http://gmpg.org/xfn/11" />
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
<link rel="stylesheet" type="text/css" media="all" href="<?php echo get_template_directory_uri(); ?>/css/lightbox.css" />
<link rel="stylesheet" type="text/css" media="all" href="<?php echo get_template_directory_uri(); ?>/css/QapTcha.jquery.css" />
<link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" />
<?php // Loads HTML5 JavaScript file to add support for HTML5 elements in older IE versions. ?>
<!--[if lt IE 9]>
<script src="<?php echo get_template_directory_uri(); ?>/js/html5.js" type="text/javascript"></script>
<![endif]-->
<?php wp_head(); ?>
    <script>
        window.themePath = '<?php echo get_template_directory_uri(); ?>';
   <script>
  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  })(window,document,'script','//www.google-analytics.com/analytics.js','ga');

  ga('create', 'UA-41041086-1', 'auto');
  ga('send', 'pageview');

</script>
</head>

任何人都可以就可能出现的问题以及如何解决问题提供建议吗?提前致谢.

Can anyone provide advice on what the issue might be and how to fix it? Thanks in advance.

干杯,杰克

推荐答案

它不在标题中.紧接着 标签是:

It's not in the header. It right after that where the <body> tag is:

<body <!-- Google Tag Manager -->
<noscript><iframe src="//www.googletagmanager.com/ns.html?id=GTM-NN644H"
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<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=
'//www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-NN644H');</script>
<!-- End Google Tag Manager --> class="home page page-id-2 page-template-default">

删除右侧的所有内容<!-- End Google Tag Manager -->

这篇关于文本出现在我的 wordpress 网站的左上角的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆