Camiel Boomsma – Music’s Innermost Side

Also that function doesn’t write to the database, it checks for values and if it doesn’t find any under “elementor_cpt_support” it will default to using [ ‘page’, ‘post’, ‘portfolio’ ] as the value for $cpt_support and then loop through each of the types via “add_post_type_support”…but again, the issue is it only applies in your theme’s activation instance and not every time moving forward which explains why it’s not working when you navigate to a portfolio post type – you’re no longer activating the theme and your function doesn’t run.