WordPress: Difference between revisions
imported>Onny mNo edit summary |
imported>Onny mNo edit summary |
||
Line 94: | Line 94: | ||
You can package any available Wordpress extension, for example from the [https://wordpress.org/themes official theme] or [https://wordpress.org/plugins plugin repository]. Be sure to replace the ''name'', url and ''sha256'' part according to your desired extension. | You can package any available Wordpress extension, for example from the [https://wordpress.org/themes official theme] or [https://wordpress.org/plugins plugin repository]. Be sure to replace the ''name'', url and ''sha256'' part according to your desired extension. | ||
If you want to automatically enable the ''responsive'' theme, add this <code>extraConfig</code> line | If you want to automatically enable and activate the ''responsive'' theme, add this <code>extraConfig</code> line | ||
<syntaxHighlight lang="nix"> | <syntaxHighlight lang="nix"> | ||
extraConfig = '' | extraConfig = '' | ||
define ('WP_DEFAULT_THEME', 'responsive'); | define ('WP_DEFAULT_THEME', 'responsive'); | ||
''; | ''; | ||
</syntaxHighlight> | </syntaxHighlight> | ||
In case you want to automatically enable the plugin, in this example ''akismet'', you can add following to <code>extraConfig</code> | In case you want to automatically enable and activate the plugin, in this example ''akismet'', you can add following to <code>extraConfig</code> | ||
<syntaxHighlight lang="nix"> | <syntaxHighlight lang="nix"> | ||
extraConfig = '' | extraConfig = '' | ||
if ( !defined('ABSPATH') ) | if ( !defined('ABSPATH') ) | ||
define('ABSPATH', dirname(__FILE__) . '/'); | define('ABSPATH', dirname(__FILE__) . '/'); |