Genesis Responsive Slider — Free WordPress Plugin

Genesis Responsive Slider Genesis Responsive Slider Di StudioPress, è un ottimo plugin per WordPress, che consente di creare uno slider per visualizzare le immagini in evidenza, il titolo ed il riassunto di ogni articolo.

Oltre alle opzioni per le dimensioni massime dello slideshow, potrete anche scegliere se visualizzare le slide da articoli/pagine, da determinate categorie oppure specificando gli ID degli articoli che si desiderano.

Avrete la possibilità di attivare o disattivare le frecce di scorrimento ed inserire lo slider in un’area widget. Ovviamente, lo slideshow è responsive e ciò significa che si adatta benissimo ed in automatico alle dimensioni dello schermo del dispositivo, su cui viene visualizzato.

Nota: si può installare questo plugin solo se state utilizzando un Child Theme del framework Genesis. Serve l’integrazione nello Child Theme ?

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; }

Maggiori informazioni e download

Gensis Responsive Slider potrebbe caricare le sue risorse su tutte le pagine del sito. Ecco come possiamo cancellare i files CSS e JS in tutte le pagine, tranne la pagina iniziale:

/** * Dequeue the Genesis Responsive Slider stylesheet. * * Hooked to the wp_print_styles action, with a late priority (100), * so that it is after the style was enqueued. */ add_action( ‘wp_print_styles’, function() { // if we are on front page, abort. if ( is_front_page() ) { return; } wp_dequeue_style( ‘slider_styles’ ); }, 100 ); /** * Dequeue the Genesis Responsive Slider script. * * Hooked to the wp_print_scripts action, with a late priority (100), * so that it is after the script was enqueued. */ add_action( ‘wp_print_scripts’, function() { // if we are on front page, abort. if ( is_front_page() ) { return; } wp_dequeue_script( ‘flexslider’ ); }, 100 );

Code: sridharkatakam.com

Our website uses cookies and thereby collects information about your visit to improve our website (by analyzing), show you Social Media content and relevant advertisements. Please see our cookies page for furher details or agree by clicking the 'Accept' button.

Cookie settings

Below you can choose which kind of cookies you allow on this website. Click on the "Save cookie settings" button to apply your choice.

FunctionalOur website uses functional cookies. These cookies are necessary to let our website work.

AnalyticalOur website uses analytical cookies to make it possible to analyze our website and optimize for the purpose of a.o. the usability.

Social mediaOur website places social media cookies to show you 3rd party content like YouTube and FaceBook. These cookies may track your personal data.

AdvertisingOur website places advertising cookies to show you 3rd party advertisements based on your interests. These cookies may track your personal data.

OtherOur website places 3rd party cookies from other 3rd party services which aren't Analytical, Social media or Advertising.