1. Go to this page and download the library: Download wearerequired/gallery-types library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
/**
* Customizes the gallery shortcode output if the type attribute is set to 'slider'.
*
* @see gallery_shortcode()
*
* @param string $output The gallery output. Default empty.
* @param array $attr Attributes of the gallery shortcode.
* @return string HTML content to display gallery.
*/
function $output = gallery_shortcode( $attr );
add_filter( 'post_gallery', '10, 2 );
return "<div class='gallery-slider'>$output</div>";
}
add_filter( 'post_gallery', '
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.