Title: Responsive WordPress Slider &#8211; HG Slider
Author: richardgabriel
Published: <strong>2012 年 12 月 21 日</strong>
Last modified: 2021 年 3 月 30 日

---

搜索插件

![](https://ps.w.org/flexslider-hg/assets/banner-772x250.jpg?rev=1346882)

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

![](https://ps.w.org/flexslider-hg/assets/icon-256x256.png?rev=970026)

# Responsive WordPress Slider – HG Slider

 作者：[richardgabriel](https://profiles.wordpress.org/richardgabriel/)

[下载](https://downloads.wordpress.org/plugin/flexslider-hg.zip)

 * [详情](https://cn.wordpress.org/plugins/flexslider-hg/#description)
 * [评价](https://cn.wordpress.org/plugins/flexslider-hg/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/flexslider-hg/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/flexslider-hg/#developers)

 [支持](https://wordpress.org/support/plugin/flexslider-hg/)

## 描述

HG Slider creates a new ‘Slides’ area in your WordPress admin and allows you to 
easily setup multiple sliders around your site. It uses the standard WordPress user
interface so you (and your clients) will know how to use it instantly.

It has a full interface for creating Sliders and can simply put but anywhere on 
your site using a simple shortcode.

## 屏幕截图

[⌊List view of the slides, custom columns used for quick viewing and editing⌉⌊List
view of the slides, custom columns used for quick viewing and editing⌉[

List view of the slides, custom columns used for quick viewing and editing

[⌊Standard WordPress UI is used including Featured Image support, Post Excerpt and
Page Attributes⌉⌊Standard WordPress UI is used including Featured Image support,
Post Excerpt and Page Attributes⌉[

Standard WordPress UI is used including Featured Image support, Post Excerpt and
Page Attributes

[⌊Included default FlexSlider template included, can be modified with CSS⌉⌊Included
default FlexSlider template included, can be modified with CSS⌉[

Included default FlexSlider template included, can be modified with CSS

[⌊PHP function to create your FlexSlider placeholders.⌉⌊PHP function to create your
FlexSlider placeholders.⌉[

PHP function to create your FlexSlider placeholders.

## 安装

 1. Add plugin to the `/wp-content/plugins/` directory
 2. 通过WordPress的的“Plugins”菜单激活插件
 3. Create placeholders in your templates (show below)
 4. Stylize to your themes design
 5. You and your clients can then upload slides with images, H2 titles and post excerpts.
    Great for SEO.

You can also use the new shortcode [flexslider slug=”homepage”] to include the rotator
in certain posts, pages, widgets, etc.

To include the rotator in your theme include the Slider ‘slug’ and add the following
line to your template:

    ```
    if(function_exists('show_flexslider_rotator')) echo show_flexslider_rotator( 'homepage' );
    ```

## 常见问题

### Change Image Size

The size of the rotator is set from your WordPress Image Size settings. You can 
set those with the following function (also in your functions.php file).

    ```
    add_image_size( 'homepage-rotator', '550', '250', true );
    ```

### FlexSlider by WooThemes, Rotator Options

For the rotator itself it uses FlexSlider by WooThemes. To setup custom options 
like making the rotator slide, you can add FlexSlider options. The below example
shows how and all the options can be found at http://www.woothemes.com/FlexSlider/

    ```
    $rotators['homepage'] = array( 'size' => 'homepage-rotator', 'options' => "{slideshowSpeed: 7000, direction: 'vertical', animation: 'slide'}" );
    ```

### Adding the rotator to your site

To include the rotator in your theme include the ‘slug’ found from your function
above ($rotators[‘homepage’]) and add the following line to your template:

    ```
    if(function_exists('show_flexslider_rotator')) echo show_flexslider_rotator( 'homepage' );
    ```

You can also use the new shortcode [flexslider slug=”homepage”] to include the rotator
in certain posts, pages, widgets, etc.

### Gallery of Attachments

New in version 1.3: If you want to display the image attachments for a give post
or page simply add the shortcode [flexslider] and it will automatically grab the
images. You can click the standard ‘Add Media’ button above the WordPress Content
Editor and then reorder the images to the order you want them to display.

Used to be called: Responsive Slider for Developers

## 评价

![](https://secure.gravatar.com/avatar/87cc4739fe65280753f0012a38fa38f524c3e605a882de7de112cb725cf4269a?
s=60&d=retro&r=g)

### 󠀁[looks good but difficult to size](https://wordpress.org/support/topic/looks-good-but-difficult-to-size/)󠁿

 [jmill23](https://profiles.wordpress.org/jmill23/) 2016 年 9 月 3 日

Simple to set up and looks great. Found the template sizes for the slider odd and
only one worked – the rest result in a stretch or distorted images. Tried inline
css using a div to control the size but can’t seem to reduce the height.

![](https://secure.gravatar.com/avatar/8f22865e17dc870e6f65d9d1aec5100d0e54e34bffe0c77463ba1b2410cc4ef3?
s=60&d=retro&r=g)

### 󠀁[Just for WooThemes](https://wordpress.org/support/topic/just-for-woothemes/)󠁿

 [vipteam](https://profiles.wordpress.org/vipteam/) 2017 年 2 月 7 日

Others do not have to look for. I’m sorry because I expected more.

 [ 阅读所有12条评价 ](https://wordpress.org/support/plugin/flexslider-hg/reviews/)

## 贡献者及开发者

「Responsive WordPress Slider – HG Slider」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ richardgabriel ](https://profiles.wordpress.org/richardgabriel/)
 *   [ Hal Gatewood ](https://profiles.wordpress.org/halgatewood/)
 *   [ ghuger ](https://profiles.wordpress.org/ghuger/)

「Responsive WordPress Slider – HG Slider」插件已被翻译至 1 种本地化语言。 感谢[所有译者](https://translate.wordpress.org/projects/wp-plugins/flexslider-hg/contributors)
为本插件所做的贡献。

[帮助将「Responsive WordPress Slider – HG Slider」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/flexslider-hg)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/flexslider-hg/)，查看
[SVN仓库](https://plugins.svn.wordpress.org/flexslider-hg/)，或通过[RSS](https://plugins.trac.wordpress.org/log/flexslider-hg/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/flexslider-hg/)。

## 更新日志

#### 2.1

 * Added ‘Open Links in New Window’ Setting to Sliders and Individual Slides
 * Updated language text domain from flexslider_hg to flexslider-hg
 * Admin labels select radio buttons and checkboxes

#### 2.0

 * New interface for creating Sliders with the ability to change all the settings.
 * 3 New Slider Themes
 * Easily add a unique classname to your slider to be able to custom the CSS on 
   a per slider basis
 * Ability to assign a slide to multiple sliders!
 * Bug Fixes and improvements, tested and developed on the latest WordPress
 * Localized

#### 1.3.1

 * Removed enqueing of scripts by has_shortcode for now

#### 1.3

 * New default attachments rotator
 * If no slug is specified we grab the attachments
 * Only enqueue scripts and styles when shortcode is present, (WP 3.6+)
 * New limit attribute, set the number of slides to display
 * New filters for developers to hook into

#### 1.2

 * Internet Explorer issues fixed
 * Code cleanup

#### 1.1.4

 * Added posts_per_page = -1 to grab all slides for a rotator

#### 1.1.3

 * Added orderby and order parameters that can be passed

#### 1.1

 * Code cleanup and improvement in Javascript, PHP and CSS
 * Shortcode added [flexslider slug=homepage]
 * Default ‘homepage’ rotator added (can be removed, overwritten, updated)
 * Option to hide the text box on top of slides
 * Ability to change the Heading H2 tag in the slide box, SEO bonus!

#### 1.0

 * Initial load of the plugin.

## 额外信息

 *  版本 **2.1**
 *  最后更新：**5 年前**
 *  活跃安装数量 **7,000+**
 *  已测试的最高版本为 **5.7.15**
 *  语言
 * [English (US)](https://wordpress.org/plugins/flexslider-hg/) 和 [Russian](https://ru.wordpress.org/plugins/flexslider-hg/).
 *  [翻译成简体中文](https://translate.wordpress.org/projects/wp-plugins/flexslider-hg)
 * 标签
 * [attachments](https://cn.wordpress.org/plugins/tags/attachments/)[flexslider](https://cn.wordpress.org/plugins/tags/flexslider/)
   [gallery](https://cn.wordpress.org/plugins/tags/gallery/)[rotator](https://cn.wordpress.org/plugins/tags/rotator/)
   [slider](https://cn.wordpress.org/plugins/tags/slider/)
 *  [高级视图](https://cn.wordpress.org/plugins/flexslider-hg/advanced/)

## 评级

 3.8 星（最高 5 星）。

 *  [  6 条 5 星评价     ](https://wordpress.org/support/plugin/flexslider-hg/reviews/?filter=5)
 *  [  3 条 4 星评价     ](https://wordpress.org/support/plugin/flexslider-hg/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/flexslider-hg/reviews/?filter=3)
 *  [  1 条 2 星评价     ](https://wordpress.org/support/plugin/flexslider-hg/reviews/?filter=2)
 *  [  2 条 1 星评价     ](https://wordpress.org/support/plugin/flexslider-hg/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/flexslider-hg/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/flexslider-hg/reviews/)

## 贡献者

 *   [ richardgabriel ](https://profiles.wordpress.org/richardgabriel/)
 *   [ Hal Gatewood ](https://profiles.wordpress.org/halgatewood/)
 *   [ ghuger ](https://profiles.wordpress.org/ghuger/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/flexslider-hg/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](https://halgatewood.com/donate)