This topic has 5 replies, 2 voices, and was last updated 8 years, 3 months ago ago by 8theme
hi,
i would like to remove the portfolio and the static blocks entirely from the theme- is there a way to do this through a function that can be added to the child theme?
Hello,
You can remove it by removing or commenting this line of code in the file wp-content/plugins/et-core-plugin/inc/post-types.php
add_action('init', array($this, 'register_post_types'), 1);
Regards
um no i would like to add the function to the child theme so i dont have to add it again after the theme updates?
can u also tell me what function to use to remove the inline style that is being generated by the “custom-styles.php”? How can i remove the main function safely and just add the custom style css in my own css file?
Unfortunately, there is no way to disable custom post types by placing some code to the child theme functions.php. You need to remove the line we sent you.
As for custom styles, add empty function to the functions.php file in your child theme to remove all generated styles
function etheme_assets() {}
Regards
You must be logged in to reply to this topic.Log in/Sign up