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收到的搜索字詞的文章