Carob-Framework
Carob-Framework copied to clipboard
Embding framework to a theme
Hi, thanks for great framework!!!
Can this framework be embded to a theme as a part of theme like in Redux Framework? If yes, how?
Yes, you can embed it inside a theme. The first thing that comes to my mind is that you need to change the framework paths inside the class-carob-loader.php from:
...
define( 'CAROB_FRAMEWORK_ROOT', plugin_dir_path( __FILE__ ) );
define( 'CAROB_FRAMEWORK_URI', plugin_dir_url( __FILE__ ) );
...
to:
...
define( 'CAROB_FRAMEWORK_ROOT', get_template_directory() );
define( 'CAROB_FRAMEWORK_URI', get_template_directory_uri() );
...
it's not working. too many errors . I think the theme functions need to be modefied too.