
內容簡介
此外掛可讓您建立簡單的響應式幻燈片,顯示每篇文章的特色圖像、標題和摘要。
它包含您的投影片的最大尺寸選項,可讓您選擇顯示文章或頁面,可以從哪個類別中拉出,甚至能夠選擇要顯示的文章的特定文章 ID。它還包括下一步/上一步箭頭和一個分頁器,以及開啟或關閉兩者的選項。最後,您可以將幻燈片放入控制元件區域中。
此幻燈片也具有響應式,並會自動調整顯示的屏幕尺寸。
注意:此外掛僅支持 Genesis 子佈景主題。
子佈景主題整合
要為子佈景主題調整幻燈片的預設值,請使用與以下類似的篩選器:
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;
}
外掛標籤
開發者團隊
原文外掛簡介
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;
}
