OCDI theme integration
-
Hello, I’ve done multiple tries to integrate OCDI in my theme by putting this into my functions.php file:
function ocdi_register_plugins( $plugins ) { $theme_plugins = [ [ // A www.ads-software.com plugin repository example. 'name' => 'Advanced Custom Fields', // Name of the plugin. 'slug' => 'advanced-custom-fields', // Plugin slug - the same as on www.ads-software.com plugin repository. 'required' => true, // If the plugin is required or not. ], ]; return array_merge( $plugins, $theme_plugins ); } add_filter( 'ocdi/register_plugins', 'ocdi_register_plugins' );
But wheter I include a required plugin, theme, xlm file or not, OCDI always acts like there’s nothing to import.
In the import demo page I receive the following message:There are no predefined import files available for this theme. Please upload the import files manually below.
And that happens with any theme, how can I solve that?
Thanks in advance.
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘OCDI theme integration’ is closed to new replies.