Created
May 17, 2022 08:42
-
-
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // 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