Carob-Framework icon indicating copy to clipboard operation
Carob-Framework copied to clipboard

Embding framework to a theme

Open lgabeskiria opened this issue 10 years ago • 2 comments

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?

lgabeskiria avatar Jul 31 '14 21:07 lgabeskiria

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() );
...

yankodimitrov avatar Aug 02 '14 06:08 yankodimitrov

it's not working. too many errors . I think the theme functions need to be modefied too.

lgabeskiria avatar Aug 02 '14 17:08 lgabeskiria