[WordPress] 外掛分享: Rotating Hero Image

首頁外掛目錄 › Rotating Hero Image
WordPress 外掛 Rotating Hero Image 的封面圖片
30+
安裝啟用
尚無評分
1133 天前
最後更新
問題解決
WordPress 5.4+ v1.0.7 上架:2022-03-28

內容簡介

網站上的 Hero Images 非常好,但是如果一直使用同一個圖片就會變得很無聊。而在頁面上使用輪播會增加太多的程式碼,使效能明顯降低。

這是一個外掛,它可以自動地輪播多張 Hero Images,而不會增加程式碼。您可以設定圖片每天更換一次,或是每小時更換一次,抑或任何您喜歡的時間間隔。

這是一個由網站設計公司開發的外掛,我們時常在客戶的網站上使用這個外掛。您現在也可以使用它。

使用背景圖片、標題、描述和操作按鈕,在頁面上展示一個 Hero Banner。

在網站首頁或內頁添加一個 Hero Image,它會在設定的時間間隔內自動更換圖片。使用這個外掛,圖片會自動更換,不需要在前端添加額外的程式碼。

您還可以在分類頁面上建立一個 Hero Image,根據時間進行更換。

如何在首頁或其他頁面/文章中使用簡碼:

在編輯器簡碼塊中使用此簡碼,它將會輪播所有 Hero Images:

[wsx_hero_image]

使用分類 ID 指定特定的分類:

[wsx_hero_image catid="1"]

如果您想要在模板/PHP 文件中添加此功能,請使用以下代碼:

<?php echo do_shortcode('[wsx_hero_image catid="1"]'); ?>

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.0.7) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Rotating Hero Image」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

Hero images on websites are great, but having the same one appear all the time gets… really boring. And using a slideshow on a page can add too much bloat to your code, slowing things down way too much.
Here’s a plugin that rotates multiple hero images automatically – with no code bloat. Images can change hourly if you like or set it to daily (24 hours) – or whatever you want.
This is a plugin made by a website design company. We use this plugin on our clients’ sites all the time. Now you can, too.
Display a hero banner on a page using a background image, title, description, and action button.
Add a hero image to your website’s home page or inside page of your website that automatically changes after a set amount of time. Using this plugin, the image will change, but no extra code is necessary on the front side.
You can also create a hero image on category pages. Change any of them on an hourly basis.
How to use shortcodes on your homepage or other page/post:
Use this shortcode in the editor shortcode block and it will rotate all hero images:
[wsx_hero_image]

Use this shortcode for a specific category using the category ID:
[wsx_hero_image catid="1"]

If you want to add this functionality to your template/PHP file, use the following code:

延伸相關外掛

文章
Filter
Mastodon