Hi, I’ve updated my theme to the latest and my modification at parent theme is deleted. I want to delete some unwanted menu like “Portofolio, Departments, etc”, as I remember I can remove the code from framework.php but I can’t find the code on it. Please tell me the way..
nb: if I want to modify it on child theme, I just need to copy the file (framework.php for example) to child’s folder and make modification there, don’t I?
IF you are asking about how to remove unused custom post types then you need to
to comment out the custom post type function call in file framework/presentation/custom-post-types.php .
ie, if you want to remove the portfolio type then you need to comment-out the below line –
mo_register_portfolio_type();
You need to copy the entire function mo_register_custom_post_types from file custom-post-types.php to your child theme’s functions.php and comment-out the required line of code .