WordPress Theme into Beans Framework


Hi,

Copy the API folder from Beans Framework to your theme.

In your theme, open functions.php and write this code:

// Load the `init.php` file from API folder.
require_once( get_template_directory . '/api/init.php' );

// Load Beans API components. This will automatically loads component's dependencies.
beans_load_api_components( array(
    'actions',
    'html',
    // 'term-meta',
    // 'post-meta',
    // 'image',
    // 'wp-customize',
    // 'compiler',
    // 'uikit', // if you use uikit.
    // 'template',
    // 'layout',
    // 'widget',
) );

You can remove components that you don't want. Personally I would implement actions and html first.

Write a reply

Login or register to write a reply, it's free!