File Editor
Directories:
.. (Back)
ai-app
cloud
common
core
epanel
fonts
framework
images
includes
lang
scripts
Files:
changelog.txt
comments.php
footer.php
functions.php
header.php
home.php
index-content.php
index.php
module-ads.php
module-featured-posts-slider.php
module-posts-blog-feed-loop.php
module-posts-blog-feed.php
module-posts-carousel.php
module-posts-content.php
module-posts.php
module-tabbed-posts-tab.php
module-tabbed-posts.php
options_extra.php
page-template-authors.php
page-template-blog-feed.php
page-template-contact.php
page-template-fullwidth.php
page-template-member.php
page-template-portfolio.php
page-template-sitemap.php
page-template-timeline.php
page.php
post-top-content.php
post_thumbnails_extra.php
sidebar-footer.php
sidebar.php
single-et_pb_layout.php
single-post.php
single-project.php
single.php
style-cpt-rtl.min.css
style-cpt.min.css
style-rtl.min.css
style-static-cpt-rtl.min.css
style-static-cpt.min.css
style-static-rtl.min.css
style-static.min.css
style.css
style.min.css
theme-after-wrappers.php
theme-before-wrappers.php
theme-footer.php
theme-header.php
timeline-posts-content.php
Create New File
Create
Edit File: post_thumbnails_extra.php
<?php // Prevent file from being loaded directly if ( ! defined( 'ABSPATH' ) ) { die( '-1' ); } add_theme_support( 'post-thumbnails' ); global $et_theme_image_sizes; $et_theme_image_sizes = array( '400x250' => 'et-builder-post-main-image', '1080x675' => 'et-builder-post-main-image-fullwidth', '400x284' => 'et-builder-portfolio-image', '1080x9999' => 'et-builder-portfolio-image-single', '400x516' => 'et-builder-gallery-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-builder-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