@pingram3541 Hello, and THANK YOU very much for your time and for such a good explaining.
Unfortunately i tryed for the last 2 hours to make it work but i can`t find the right code for it.
function mytheme_add_cpt_support() {
$cpt_support = get_option( 'elementor_cpt_support', [ 'page', 'post', 'portfolio' ] );
foreach ( $cpt_support as $cpt_slug ) {
add_post_type_support( $cpt_slug, 'elementor' );
}
}
add_action( 'after_switch_theme', 'mytheme_add_cpt_support' );
It will be highly appreciated if you can point me the correct code.
Thank you again in advance!
-
This reply was modified 6 years, 6 months ago by mthemesnet.