该插件尚未通过WordPress的最新3个主要版本进行测试。 当与较新版本的WordPress一起使用时,可能不再受到维护或支持,并且可能会存在兼容性问题。

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:

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

屏幕截图

  • screenshot-1.png
  • screenshot-2.png
  • screenshot-3.png
  • screenshot-4.png
  • screenshot-5.png

安装

Option 1:

  1. Install the plugin in the Dashboard => Plugins menu => Add New => Upload => Select the zip file => Install Now
  2. Activate plugin in the Dashboard => Plugins menu
  3. After activating the plugin, go to Hero Image menu, add New category and hero image and save setting.

Option 2:

  1. Upload the ‘rotating-hero-image’ folder to the ‘/wp-content/plugins/’ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. After activating the plugin, go to Hero Image menu, add New category and hero image and save setting.

常见问题

After activating the plugin what should I do?

  1. Add a new category.
  2. Add a new hero image to that category.
  3. Modify the plugin settings to what you want.
  4. Use the category shortcode wherever you want.

评价

此插件暂无评价。

贡献者及开发者

「Rotating Hero Image」是开源软件。 以下人员对此插件做出了贡献。

贡献者

更新日志

1.0.0

  • Initial Release — February 2022

1.0.1

  • Setting link added in plugin page.

1.0.2

  • Fixed loaded media file deleted issue.

1.0.3

  • Updated the plugin to be compatible with 5.9.3

1.0.4

  • Updated the plugin to be compatible with 6.0

1.0.5

  • Updated the plugin to be compatible with 6.0.1

1.0.6

  • Updated the plugin to be compatible with 6.0.2

1.0.7

  • Updated the plugin to be compatible with 6.1.1