Remove Portfolio and Static Blocks - by mt2112

4 replies2 participantsUpdated by 8theme

  • Avatar: mt2112
    mt2112
    Participant

    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?

    4 Answers

    Avatar: 8theme
    8theme
    Support staff

    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

    Avatar: mt2112
    mt2112
    Participant

    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?

    Avatar: mt2112
    mt2112
    Participant

    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?

    Avatar: 8theme
    8theme
    Support staff

    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