
內容簡介
Ghost Tags. 一個炫彩動態的標籤雲小工具!
查看我們的所有高級 WordPress 外掛和佈景主題:http://nuvuthemes.com
下載這個允許你設置展示標籤數量,還有支援的高級版:http://nrcstudios.info/index.php/ghost-tags
需要 WordPress 3.0+ 和 PHP 5 或更高版本。
使用網頁字型為每個標籤設置交替風格。
為你原本平淡無奇的博客注入新鮮元素。
顯示網站使用或關聯的所有標籤。
以輪播方式循環顯示所有標籤。
可點擊標籤連結快速搜索該關鍵詞。
查看演示:http://ghostcloud.nrcstudios.info
下載這個允許你設置展示標籤數量,還有支援的高級版:http://nrcstudios.info/index.php/ghost-tags
更新 3-5-2012:修正了 jQuery 代碼衝突問題。
如果你使用這個免費的小工具,請考慮捐款 http://nrcstudios.info。
-感謝您
其他內容
將 jQuery 放在插件前加載
正確的將 jQuery 加載到 WordPress 佈景主題中的方式是在 loading 所有插件之前加載。但如果你的佈景主題沒有加載 jQuery,該插件會獨自加載 jQuery。如果要從佈景主題中加載 jQuery 而不是在外掛中加載,請按照以下更改檔案的步驟操作:
步驟一:打開你的主題的 functions.php 文件,在任何地方添加以下代碼:
if( !is_admin()){
wp_deregister_script(‘jquery’);
wp_register_script(‘jquery’, (“http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js”), false, ‘1.7.1’);
wp_enqueue_script(‘jquery’);
}
步驟二:打開 ghost-tags.php 文件,並在第 19 行註釋或刪除輸出代碼(在它之前添加兩個反斜杠 "//")
// echo “<script type=’text/javascript’ src=’https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js’></script> ” ;
*步驟三:將保存的文件上傳到你的服務器上。
這會在 loading 頁面上的所有插件之前加載 jQuery,從而消除了讓每個插件都加載 jQuery 的需求。
當每個插件在頁面上加載不同版本的 jQuery 時,這會造成兼容性問題,並導致你的插件無法正常工作。我強烈建議 FlickrShow 的使用者使用這種在頁面中包含 jQuery 的方法。
外掛標籤
開發者團隊
原文外掛簡介
Ghost Tags. An Animating Tag Cloud Widget!
View all our premium WordPress Plugins and Themes: http://nuvuthemes.com
Download Premium version that allows you to set the amount of Tags shown – with support: http://nrcstudios.info/index.php/ghost-tags
Requires WordPress 3.0+ and PHP 5.
Use web fonts to set alternating font-styles for each tag.
Adds spice to your otherwise not so spicy blog.
Displays all used or associated Tags on your site.
Cycles through all tags in an alternating carousel motion.
Clickable links to search terms in cloud.
View Demo: http://ghostcloud.nrcstudios.info
Download Premium version that allows you to set the amount of Tags shown – with support: http://nrcstudios.info/index.php/ghost-tags
Update 3-5-2012: jQuery script loading changed to fix conflict issues.
Please consider a donation if you use this free widget http://nrcstudios.info.
-Thank You
Arbitrary section
Loading jQuery before plugins
The correct way to load jQuery into your theme is to load it prior to all plugins being loaded. Having said this know that the plugin loads jQuery seperately in case your theme is not set to load jQuery. To load jQuery from the theme instead of the plugin do the following changes to your theme and plugin files.
Step One: Open your themes functions.php file and add the following code anywhere on the page:
if( !is_admin()){
wp_deregister_script(‘jquery’);
wp_register_script(‘jquery’, (“http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js”), false, ‘1.7.1’);
wp_enqueue_script(‘jquery’);
}
Step Two: Open the ghost-tags.php file and comment out or delete the echo script line on line 19 by adding two backslashes before it (“//”))
// echo “ ” ;
*Step Three: Upload the saved files to your server.
This will load jQuery into your theme before any plugins get loaded on the page thus eliminating the need for each plugin to load jQuery.
When each plugin loads different versions of jQuery on the page this creates compatability issues and will cause your plugins to not work correctly. I seriously suggest the users of FlickrShow to use this method of including jQuery on the page.
