To get your WordPress site set up with Grow, you'll need to add the provided script to your site.
- If you’re using the Genesis framework you can insert the code with Genesis Simple Hooks.
- If you’re running the Trellis framework you can insert the code in hooks.
- If you aren't running either of the above-mentioned frameworks, use Header & Footer plugin.
First - Insert the Grow Script
Copy your Grow script from the Grow Publisher Portal. This will either be under the steps when you're adding your site, or the script will be available under the Install Grow tab in the sidebar. Then choose which way to insert the script; see below for detailed instructions on available options.
Genesis Simple Hooks Plugin
If you’re running Genesis, inserting code into the <head></head> section of your site with the Genesis Simple Hooks plugin is incredibly easy.
We recommend using Genesis Simple Hooks and not directly editing your theme to make sure your script does not accidentally go down between Genesis updates.
Step 1: Make sure you have Genesis Simple Hooks installed and activated.
Step 2: In the sidebar, click on Genesis and choose Simple Hooks.
Step 3: Under the genesis_meta Hook, paste in the script you got from the Grow Publisher Portal. Each site gets its own script.
Step 4: Click Save Changes.
Step 5: Clear the cache in any caching plugins you may be running to make sure your script is on every page.
Step 6: Head back over to the Grow Publisher Portal and click the I've Installed the Script button. Grow will run a check and make sure that the script has been properly installed. If it is, you'll see a Success message. If you're running into trouble, check out our guide on troubleshooting script installation errors.
Trellis Hooks
Step 1: Navigate to WordPress > Appearance > Mediavine Trellis > Hooks
Step 2: In the Add custom HTML code to the <head> tag, paste the Grow script you copied in the previous step:
Step 3: Save Changes
Step 4: Clear the cache in any caching plugins you may be running to make sure your script is on every page.
Step 5: Head back over to the Grow Publisher Portal and click the I've Installed the Script button. Grow will run a check and make sure that the script has been properly installed. If it is, you'll see a Success message. If you're running into trouble, check out our guide on troubleshooting script installation errors.
Head & Footer Code Plugin
This will let you get your code up high in the <head></head> section of your site and by not directly editing your theme, you will make sure your script does not accidentally go down between theme updates.
Step 1: Make sure you have the Head & Footer Code plugin installed and activated
Step 2: In the sidebar, choose Tools and then click Head & Footer Code.
Step 3: Under the HEAD Code block, paste in the script you got from the Grow Publisher Portal. Each site gets its own script. Change the HEAD Priority to 1 to make sure your script goes high up in your <head></head>.
Step 4: Click Save Changes.
Step 5: Clear the cache in any caching plugins you may be running to make sure your script is on every page.
Step 6: Head back over to the Grow Publisher Portal and click the I've Installed the Script button. Grow will run a check and make sure that the script has been properly installed. If it is, you'll see a Success message. If you're running into trouble, check out our guide on troubleshooting script installation errors.