Since KLEO version 4.0.7 you can enable/disable the modules from Theme options - Modules

For older KLEO versions, If you do not need one of the custom post types our theme comes with by default then you can disable that functionality by following these steps:

  • Make sure to have kleo-child theme active
  • Connect trough FTP on your server and edit the file located at wp-content/themes/kleo-child/functions.php
  • Add this code to disable all three post types or leave just the lines for the ones you want disabled
COPY CODE
add_action( 'after_setup_theme', 'kleo_my_remove_actions', 14 );
function kleo_my_remove_actions() {

    if ( method_exists( 'Kleo' , 'get_module' ) ) {
        /* Remove clients post type */
        $clients_module = Kleo::get_module( 'clients' );
        remove_action( 'init', array( $clients_module, 'setup_post_type' ), 7 );
        
        /* Remove testimonials post type */
        $testimonials_module = Kleo::get_module( 'testimonials' );
        remove_action( 'init', array( $testimonials_module, 'setup_post_type' ), 7 );
        
        /* Remove portfolio post type */
        $portfolio_module = Kleo::get_module( 'portfolio' );
        remove_action( 'init', array( $portfolio_module, 'setup_post_type' ), 7 );
    } else {
        global $kleo_post_types;

        /* Remove clients post type */
        remove_action( 'init', array( $kleo_post_types, 'setup_clients_post_type' ), 7 );
        
        /* Remove testimonials post type */
        remove_action( 'init', array( $kleo_post_types, 'setup_testimonials_post_type' ), 7 );
        
        /* Remove portfolio post type */
        remove_action( 'init', array( $kleo_post_types, 'setup_portfolio_post_type' ), 7 );
    }
}

Log in with your credentials

or    

Forgot your details?

Create Account