Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save nextab/dcbfcb1ca64f2979bcaa171305d19c6e to your computer and use it in GitHub Desktop.

Select an option

Save nextab/dcbfcb1ca64f2979bcaa171305d19c6e to your computer and use it in GitHub Desktop.
Dieses Code Snippet muss in deine functions.php, um eine neue Vorschaubilder-Größe für das Galerie-Modul von Divi anzulegen.
// Begin custom image size for Gallery Module
add_filter( 'et_pb_gallery_image_height', 'gallery_size_h' );
add_filter( 'et_pb_gallery_image_width', 'gallery_size_w' );
function gallery_size_h($height) {
return '750';
}
function gallery_size_w($width) {
return '1500';
}
add_image_size( 'custom-gallery-size', 1500, 750 );
// End custom image size for Gallery Module
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment