內容簡介
圖片刷新插件允許您在每次頁面加載時隨機顯示不同的圖片。
為什麼?
很多人喜歡在他們的網站上變換圖片,以保持新鮮感。每次有人訪問您的主頁時加載新圖片,這應該是一件簡單的事情,對吧?然而,人們卻會使用這種不適合這一用途的插件,為了獲得新鮮感而犧牲了性能。但是,我的朋友,這種搜尋已經結束。這個插件能做的不多不少,就是在您需要它時加載新的圖片。最重要的是,我們能以不會減慢您網站速度的方式完成。
怎麼用?
使用這個插件很簡單:
安裝插件
啟用插件
在您想要圖片刷新的頁面或文章上,只需點擊“添加媒體”按鈕,上傳任意多的圖片,點擊“保存更改”並退出媒體上傳器。
在您希望出現圖片的位置添加 [mpress_image_refresh] 短碼。
保存您的更改。
功能
與自訂文章類型一起使用
無需設置頁面,只需要一個簡單的方法來為您的網站添加新鮮的圖片
整潔、寫得好的代碼不會拖慢您的網站速度
外掛標籤
開發者團隊
原文外掛簡介
The Image Refresh plugin allows you to randomly display a different image on every page load.
Why?
Many people like to vary up the images on their site just to keep things fresh. Loading a new image every time someone visits your homepage is something that should be simple, right? Alas, people resort to using plugins that are not meant for this purpose and end up sacrificing performance for the sake of a fresh look. Well, my friend, the search has ended. This plugin does nothing more, and nothing less than load that fresh image where you need it. To top it all off, we do it in a way that won’t slow your site down.
How?
Using this plugin is simple:
Install the plugin
Activate the plugin
On the page or post where you want to have an image refresh, just click on the ‘Add Media’ button, upload as many images as you like, click ‘Save Changes’ and exit the media uploader.
Add the [mpress_image_refresh] shortcode where you want your image to appear.
Save your changes.
Features
Works with custom post types
No settings page, just an easy way for you to add fresh images to your site
Clean, well written code that won’t bog down your site
