Access all of Typerocket. Get Pro.
Plugin Install
( v6 )
- # Requirements
- # Plugin Installation
- # Pro Plugin Installation
- # Create Override Folders
- # Pro Upgrade Overrides
- # Galaxy CLI Setup
- # Child Theme Override Folders
Requirements
Before getting started, be sure your setup supports the TypeRocket system and browser requirements.
Note: Do not modify the TypeRocket plugin files. You would only extend TypeRocket using available hooks and wp-config.php
constants. When the documentation tells you to edit TypeRocket files, those edits should be made to your version of those files.
Plugin Installation
TypeRocket v6 Open is free to use forever. To install TypeRocket as a plugin you can checkout this video or you can follow these steps:
- Download TypeRocket v6 here.
- Install the plugin into your WordPress site.
- Turn on pretty URLs.
- Optionally add override folders to customize your installation.
Pro Plugin Installation
To install the TypeRocket Pro plugin go to your account and download the plugin zip file. Find the download link at the bottom of your "Purchase Receipt" page.
- Download the latest version of TypeRocket plugin.
- Upload the plugin in the WordPress admin or unzip the files into your WordPress sites
plugins
directory. - Activate the TypeRocket plugin in WordPress.
- Activate your TypeRocket site license.
- Turn on pretty URLs.
From the TypeRocket settings page located under "Settings > TypeRocket" add your site license. Activating your license gives you access to automatic updates.
Your license restricts you to a specific number of activations. You can remove old or current sites form your license in your typerocket.com account. If your authentication is not working:
- You may need to log in to your account and free a site from licenses under "Account > View Licenses > Manage Sites".
- Your license might be expired.
- You may need to log in to your account and free a site from licenses.
Create Override Folders
Optionally, once you have installed TypeRocket, you may want to override the base configuration. You can do this in two ways; by placing the override folders, with files, in the active theme or the root of your site.
First, download the TypeRocket project override folders from GitHub if you are using the free plugin. If you are using the Pro plugin you can access these files from the plugin itself under the typrocket
folder. The override folders include: app
, config
, resources
, routes
, and storage
.
Next, place those folders in either:
- The root of your active theme.
- The root of your WordPress installation where your
wp-settings.php
is located.
If you place your files in the root of WordPress (not your active theme) also add the following to your wp-config.php
file:
// Root WordPress customizations
define('TYPEROCKET_CORE_CONFIG_PATH', __DIR__ . '/config');
define('TYPEROCKET_ALT_PATH', __DIR__);
define('TYPEROCKET_APP_NAMESPACE', 'App');
define('TYPEROCKET_AUTOLOAD_APP', [
'prefix' => TYPEROCKET_APP_NAMESPACE . '\\',
'folder' => __DIR__. '/app/',
]);
Pro Upgrade Overrides
If you are upgrading from the free plugin to the TypeRocket Pro plugin you will also need to copy some configuration files from the plugin itself into your config
overrides folder. The config files can be found under typerocket-pro-v6/typrocket/config
. The files include:
-
editor.php
. -
logging.php
. -
mail.php
. -
rapid.php
. -
storage.php
.
Next, you will need to locate your custom app/Elements/Fom.php
file and add use \TypeRocket\Pro\Elements\Traits\AdvancedFields;
:
<?php
namespace App\Elements;
use TypeRocket\Elements\BaseForm;
class Form extends BaseForm
{
use \TypeRocket\Pro\Elements\Traits\AdvancedFields;
}
Galaxy CLI Setup
Navigate to the public root of your WordPress project. This is the location where the wp-settings.php
file is located. In your main WordPress directory, copy the galaxy
file from the TypeRocket plugin to this location and add a file named galaxy-config.php
.
Add the following code to your galaxy-config.php
and point the $typerocket
variable to the typerocket
folder within the plugin version you are using.
You can also watch the tutorial on YouTube.
// Your paths might be different.
// This example works with the Pro plugin.
$typerocket = __DIR__ . '/wp-content/plugins/typerocket-pro-v6/typerocket';
$overrides = __DIR__ . '/wp-content/themes/my-theme';
define('TYPEROCKET_GALAXY_PATH', $typerocket);
define('TYPEROCKET_CORE_CONFIG_PATH', $overrides . '/config' );
define('TYPEROCKET_ROOT_WP', __DIR__);
define('TYPEROCKET_APP_ROOT_PATH', $overrides);
define('TYPEROCKET_ALT_PATH', $overrides);
// Here we include the app folder
define('TYPEROCKET_AUTOLOAD_APP', [
'prefix' => 'App',
'folder' => $overrides . '/app',
]);
Child Theme Override Folders
If you are using a child theme, TypeRocket will not automatically detect your override folder. you will need to manually set the override folder path in your wp-config.php
file using the constant TYPEROCKET_OVERRIDE_PATH
.
// Root WordPress customizations
define('TYPEROCKET_OVERRIDE_PATH', __DIR__ . '/path/to/my/child/theme/folder');
Found a typo? Something is wrong in this documentation? Fork and edit it!