WordPress插件:Genesis Responsive Slider

官方简介

This plugin allows you to create a simple responsive slider that displays the featured image, along with the title and excerpt from each post.

It includes options for the maximum dimensions of your slideshow, allows you to choose to display posts or pages, what category to pull from, and even the specific post IDs of the posts you want to display. It includes next/previous arrows and a pager along with the option to turn both on or off. Finally, you can place the slider into a widget area.

The slideshow is also responsive and will automatically adjust for the screen it is being displayed on.

Note: This plugin only supports Genesis child themes.

Child Theme Integration

To adjust the slider defaults for a child theme use a filter similiar to the following:

add_filter( 'genesis_responsive_slider_settings_defaults', 'my_child_theme_responsive_slider_defaults' );

function my_child_theme_responsive_slider_defaults( $defaults ) {
    $defaults = array(
        'post_type' => 'post',
        'posts_term' => '',
        'exclude_terms' => '',
        'include_exclude' => '',
        'post_id' => '',
        'posts_num' => 5,
        'posts_offset' => 0,
        'orderby' => 'date',
        'slideshow_timer' => 4000,
        'slideshow_delay' => 800,
        'slideshow_arrows' => 1,
        'slideshow_pager' => 1,
        'slideshow_loop' => 1,
        'slideshow_height' => 400,
        'slideshow_width' => 920,
        'slideshow_effect' => 'slide',
        'slideshow_excerpt_content' => 'excerpts',
        'slideshow_excerpt_content_limit' => 150,
        'slideshow_more_text' => '[Continue Reading]',
        'slideshow_excerpt_show' => 1,
        'slideshow_excerpt_width' => 50,
        'location_vertical' => 'bottom',
        'location_horizontal' => 'right',
        'slideshow_hide_mobile' => 1
    );
    return $defaults;
}

声明:文中观点不代表本站立场。本文传送门:https://eyangzhen.com/12414.html

联系我们
联系我们
分享本页
返回顶部