Remove Portfolio and Static Blocks - by mt2112

This topic has 5 replies, 2 voices, and was last updated 7 years, 6 months ago ago by 8theme

  • Avatar: mt2112
    mt2112
    Participant
    October 4, 2016 at 04:56

    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
    October 4, 2016 at 07:36

    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
    October 12, 2016 at 02:13

    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
    October 12, 2016 at 02:15

    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
    October 12, 2016 at 10:46

    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

  • Viewing 5 results - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.