Would the child functions.php help?
<?php
/**
* Functions – Child theme custom functions
*/
/*****************************************************************************************************************
Caution: do not remove this or you will lose all the customization capabilities created by Divi Children plugin */
require_once(‘divi-children-engine/divi_children_engine.php’);
/****************************************************************************************************************/
/**
* Patch to fix Divi issue: Duplicated Predefined Layouts.
*/
remove_action( ‘admin_init’, ‘et_pb_update_predefined_layouts’ );
function Divichild_pb_update_predefined_layouts() {
if ( ‘on’ === get_theme_mod( ‘et_pb_predefined_layouts_updated_2_0’ ) ) {
return;
}
if ( ! get_theme_mod( ‘et_pb_predefined_layouts_added’ ) OR ( ‘on’ === get_theme_mod( ‘et_pb_predefined_layouts_added’ ) )) {
et_pb_delete_predefined_layouts();
}
et_pb_add_predefined_layouts();
set_theme_mod( ‘et_pb_predefined_layouts_updated_2_0’, ‘on’ );
}
add_action( ‘admin_init’, ‘Divichild_pb_update_predefined_layouts’ );
function mycustom_featured_width( ) { return 160; /* Custom featured post image width */ }
add_filter( ‘et_pb_blog_image_width’, ‘mycustom_featured_width’);
add_filter( ‘et_pb_index_blog_image_width’, ‘mycustom_featured_width’);
function mycustom_featured_height( ) { return 130; /* Custom featured post image height */ }
add_filter( ‘et_pb_blog_image_height’, ‘mycustom_featured_height’);
add_filter( ‘et_pb_index_blog_image_height’, ‘mycustom_featured_height’);
function mycustom_featured_size( $image_sizes ) {
$custom_size = mycustom_featured_width() . ‘x’ . mycustom_featured_height();
$image_sizes[$custom_size] = ‘et-pb-post-main-image-thumbnail’;
return $image_sizes;
}
add_filter( ‘et_theme_image_sizes’, ‘mycustom_featured_size’ );
/* Index & archive */
function wpt_index_thumbnail_width( $width ) {
if( !is_single() ) {
return 150; //index thumbnail width in pixels
} else {
return $width;
}
}
add_filter( ‘et_pb_index_blog_image_width’, ‘wpt_index_thumbnail_width’);
function wpt_index_thumbnail_height( $height ) {
if( !is_single() ) {
return 212; //index thumbnail height in pixels
} else {
return $height;
}
}
add_filter( ‘et_pb_index_blog_image_height’, ‘wpt_index_thumbnail_height’);
/* Add hotelmotel shortcode attribute */
add_filter( ‘shortcode_atts_wpcf7’, ‘custom_shortcode_atts_wpcf7_filter’, 10, 3 );
function custom_shortcode_atts_wpcf7_filter( $out, $pairs, $atts ) {
$my_attr = ‘hotelmotel’;
if ( isset( $atts[$my_attr] ) ) {
$out[$my_attr] = $atts[$my_attr];
}
return $out;
}
?>