mthemesnet
Forum Replies Created
-
@pingram3541
Give this man a medal!
Not only that you provided the code for me but you also explained the whole situation point by point. Amazing!Thank you for your time Philip!
@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 7 years, 8 months ago by mthemesnet.
@suchielementor Thank you for your reply. I was aware of the option in dashboard but i was looking for something else.
I need a PHP hook or something (update_option, etc) in my theme config so when my clients will install the theme, the cpt ‘potrfolio’ will be already checked as editable with Elementor.
Thanks!