Skip to main content

Genesis Developer Docs

Install Dependencies During Genesis Theme Setup

Requires Genesis 2.9.0+ and WordPress 5.0.0+

One-click theme setup #

Install plugins #

Plugins you add as dependencies are installed and activated before content is imported.

Only plugins from the WordPress.org repository are currently supported.

Add plugins as dependencies to your onboarding config like this:

<?php
/**
* Genesis Sample.
*
* Onboarding config to load plugins and homepage content on theme activation.
*
* @package Genesis Sample
* @author StudioPress
* @license GPL-2.0-or-later
* @link https://www.studiopress.com/
*/

return [
'dependencies' => [
'plugins' => [
[
'name' => __( 'Genesis Blocks', 'genesis-sample' ),
'slug' => 'genesis-blocks/genesis-blocks.php',
'public_url' => 'https://developer.wpengine.com/genesis-blocks/',
],
[
'name' => __( 'WPForms Lite', 'genesis-sample' ),
'slug' => 'wpforms-lite/wpforms.php',
'public_url' => 'https://wordpress.org/plugins/wpforms-lite/',
],
[
'name' => __( 'Genesis eNews Extended', 'genesis-sample' ),
'slug' => 'genesis-enews-extended/plugin.php',
'public_url' => 'https://wordpress.org/plugins/genesis-enews-extended/',
],
[
'name' => __( 'Simple Social Icons', 'genesis-sample' ),
'slug' => 'simple-social-icons/simple-social-icons.php',
'public_url' => 'https://wordpress.org/plugins/simple-social-icons/',
],
],
],
// Other config removed for this example.
'content' => [],
'navigation_menus' => [],
'widgets' => [],
];