File Editor
Directories:
.. (Back)
core
css
epanel
et-pagebuilder
images
includes
js
lang
psd
Files:
404.php
changelog.txt
comments.php
footer.php
functions.php
header.php
index.php
options_divi.php
page-template-blank.php
page.php
post_thumbnails_divi.php
rtl.css
sidebar-footer.php
sidebar.php
single-et_pb_layout.php
single-project.php
single.php
style.css
Create New File
Create
Edit File: post_thumbnails_divi.php
<?php add_theme_support( 'post-thumbnails' ); global $et_theme_image_sizes; $et_theme_image_sizes = array( '400x250' => 'et-pb-post-main-image', '1080x675' => 'et-pb-post-main-image-fullwidth', '400x284' => 'et-pb-portfolio-image', '510x382' => 'et-pb-portfolio-module-image', '1080x9999' => 'et-pb-portfolio-image-single', '400x516' => 'et-pb-gallery-module-image-portrait', ); $et_theme_image_sizes = apply_filters( 'et_theme_image_sizes', $et_theme_image_sizes ); $crop = apply_filters( 'et_post_thumbnails_crop', true ); if ( is_array( $et_theme_image_sizes ) ){ foreach ( $et_theme_image_sizes as $image_size_dimensions => $image_size_name ){ $dimensions = explode( 'x', $image_size_dimensions ); if ( in_array( $image_size_name, array( 'et-pb-portfolio-image-single' ) ) ) $crop = false; add_image_size( $image_size_name, $dimensions[0], $dimensions[1], $crop ); $crop = apply_filters( 'et_post_thumbnails_crop', true ); } }
Save Changes
Rename File
Rename