Table of Contents
1. Shortcode Generator
From your page’s main editor, select the Essential Grid icon from the tool bar.
Then from the “Choose Predefined Grid” section toward the top, select your grid from the dropdown list.
Result:
2. PHP Method (advanced)
Important Note
This technique involves editing your theme’s page template files, which should only be attempted by experienced users. In the following example, we’ll add the grid’s shortcode to the TwentySixteen theme’s “page.php” file.
Step 1: Grab your grid’s shortcode from the plugin’s main admin page.
Step 2: Choose to use one of the code variations below.
Add Grid to ALL pages:
<?php
// Ess. Grid shortcode is placed inside the "do_shortcode" method, wrapped in single quotes
echo do_shortcode('');
?>
Add Grid to Homepage only:
<?php
// example to add the grid to the homepage only
if(is_home()) {
// Ess. Grid shortcode is placed inside the "do_shortcode" method, wrapped in single quotes
echo do_shortcode('');
}
?>
Add Grid to a list of certain pages only:
<?php
// id's of pages to add the grid to
$page_ids = array(535, 716);
if(in_array(get_the_ID(), $page_ids, true)) {
// Ess. Grid shortcode is placed inside the "do_shortcode" method, wrapped in single quotes
echo do_shortcode('');
}
?>