Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #333186

    Hi
    I want to use Enfold on a client’s site but I am unable to upload the Enfold theme zip via WordPress as the host has a file size restriction and I can’t get FTP access. So I am wondering if I could safely remove some folders from the theme to reduce the size as I wouldn’t be needing a lot of the features, Woo commerce, etc on this site?

    many thanks
    Peter

    #333502

    Hi envapk2!

    Please try editing functions.php file. Find following

    require_once( 'config-bbpress/config.php' );					//compatibility with  bbpress forum plugin
    require_once( 'config-templatebuilder/config.php' );			//templatebuilder plugin
    require_once( 'config-gravityforms/config.php' );				//compatibility with gravityforms plugin
    require_once( 'config-woocommerce/config.php' );				//compatibility with woocommerce plugin
    require_once( 'config-wordpress-seo/config.php' );				//compatibility with Yoast WordPress SEO plugin
    require_once( 'config-events-calendar/config.php' );			//compatibility with the Events Calendar plugin

    and change it to

    //require_once( 'config-bbpress/config.php' );					//compatibility with  bbpress forum plugin
    require_once( 'config-templatebuilder/config.php' );			//templatebuilder plugin
    //require_once( 'config-gravityforms/config.php' );				//compatibility with gravityforms plugin
    //require_once( 'config-woocommerce/config.php' );				//compatibility with woocommerce plugin
    //require_once( 'config-wordpress-seo/config.php' );				//compatibility with Yoast WordPress SEO plugin
    //require_once( 'config-events-calendar/config.php' );			//compatibility with the Events Calendar plugin

    Then you can remove folder from Enfold folder and try uploading.

    Cheers!
    Yigit

    #333793

    Thanks Yigit

    Is it possible to remove the config-layerslider is a similar way?

    #333994

    Hi!

    Yes, please add following code to Functions.php file

    add_theme_support('deactivate_layerslider');

    and remove the folder from the theme

    Regards,
    Yigit

    #334113

    Hi Yigit

    That’s great.

    many thanks

    Peter

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Reduced file size of theme upload’ is closed to new replies.