How to Disable or Hide WordPress.com Automattic Stats Plugin Smiley Icon如何禁用或隐藏WordPress.com Automattic统计插件笑脸图标

WordPress.com Stats plugin for self-hosted WordPress blog (aka Automattic Stats plugin) is a good and free web visitors statistics tracker for WordPress blogging platform. WordPress.com统计插件的自我主办WordPress的博客(又名Automattic统计插件)是一个很好的免费网站访问者统计跟踪的WordPress的博客平台。 The WordPress.com Status plugin provides the most popular metrics, stats and information that a blogger wants to track in a clear and concise interface. WordPress.com状态的插件提供了最流行的数据,统计资料和信息,一个Blogger要跟踪的明确和简洁的界面。

However, after activating and implementing WordPress Stats plugin, a small smiley face icon will be displayed at the bottom of the page.然而,在激活和执行WordPress的统计插件,一个小笑脸图标将显示在页面底部。 The smiley face, although tiny in size, may affect the overall look and feel of the blog, or causing confusion among visitors about the image that appears oddly at the bottom.的笑脸,虽然规模很小,可能会影响到整体外观和感觉的博客,或造成混乱访问者的形象出现奇怪底部。

Luckily, it’s possible to hide the smiley face added by the WordPress.com Automattic Stats plugin, by using the following CSS hack.幸运的是,有可能隐藏笑脸增加的WordPress.com Automattic统计插件,使用以下的CSS破解。

To hide the smiley face of WordPress.com Stats plugin, add the following CSS code to the WordPress blog’s stylesheet (style.css):要隐藏的笑脸WordPress.com统计插件,添加下面的CSS代码的WordPress的博客的样式表( style.css ) :

img#wpstats{width:0px;height:0px;overflow:hidden}

Alternatively, add the following JavaScript code into the WordPress footer.php after wp_footer() declaration:另外,添加以下JavaScript代码到WordPress的footer.php后wp_footer ( )声明如下:

<script type=”text/javascript”> <script type="text/javascript">
var e = document.getElementById(”wpstats”);叶é = document.getElementById ( “ wpstats ” ) ;
e.style.width = “0px”; e.style.width = “ 0px ” ;
e.style.height= “0px”; e.style.height = “ 0px ” ;
e.style.overflow = “hidden”; e.style.overflow = “隐藏” ;
</script> “ /脚本”

Note that the image is required for proper stats gathering and traffic tracking.请注意,图像需要进行适当的统计信息的收集和运输跟踪。 Anything such as applying “display:none” to the image will cause the image not to be loaded by the browser and will break the stats.任何事情,如运用“显示:无”的形象将造成的形象不被载入的浏览器,将打破状态。

One consent of using the CSS or JavaScript above is the usage of hidden overflow style, which may be treated as a hidden text or hidden link by search engines especially Google that may gives penalty to such implementation that may be perceived as untrustworthy since it presents information to search engines differently than to visitors.其中同意使用的CSS或JavaScript以上是使用隐藏的溢流式,可视为一个隐藏文本或隐藏链接的搜索引擎是谷歌,可能使这种刑罚执行情况,可能被看作是不可信的,因为它介绍搜索引擎不同的参观者。

IMPORTANT : This is a machine translated page which is provided "as is" without warranty. 重要说明:这是一台机器翻译网页这是“原样”提供,无保修。 Machine translation may be difficult to understand.机器翻译可能很难理解。 Please refer to请参阅 original English article英文原文的文章 whenever possible.只要有可能。

Share and contribute or get technical support and help at共享和贡献或获得技术支持和帮助 My Digital Life Forums 我的数字生活论坛 .



Leave a Reply留下一个回复

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> 您可以使用这些标签: href="" title="">的<a <abbr title=""> <acronym title="">的<b> <blockquote cite=""> <cite>的<code> “删除日期时间= “ ” “的<em> <i> <q cite=""> <strike>的<strong>

Subscribe without commenting订阅没有评论


Custom Search

New Articles新文章

Incoming Search Terms for the Article收到的搜索字词的文章