Global Sections
A global section is a piece of page builder content that lives on its own, outside of any page. You build it with the same rows, columns and elements you use everywhere else, then tell Salient where in the theme it should render. From that point it appears in that spot across the site, and editing the section updates every place it shows.
That makes it the tool for the parts of a site that are not really a page: the footer, a bar that sits above the header, a call to action before the footer, the contents of the off canvas menu, a mega menu panel, the layout of the blog archive.
Why build one
- One place to edit. A call to action added to forty pages by hand has to be changed forty times. As a global section it is changed once.
- The page builder instead of widgets. WordPress gives you widget areas for the footer and sidebar. A global section gives you the full builder in the same spots, so the layout is as free as any page you design.
- Shown only where you want it. Each section carries its own display conditions: a post type, an archive, logged in users, one specific page. Two footers on one site is a normal arrangement.
- Portable. Global Sections is an ordinary WordPress post type, so a section can be exported from one site and imported into another.
How it works
- Build the section. Go to Global Sections in the admin sidebar, add a new one, and lay it out in the page builder.
- Choose a display location. The metabox in the sidebar lists every spot the theme exposes, grouped by area: header and navigation, main content, footer, menu, portfolio and WooCommerce. See Locations and Conditions.
- Add a display condition. A location with no condition renders nowhere, so every section needs at least one, even if that condition is Everywhere.
For content that belongs on a handful of pages rather than a location in the theme, skip the location entirely and drop the section in with the Global Section element.
What people build with them
- Footers. The most common use by far, and the reason most people open the post type. See Creating a Footer.
- Mega menu panels. Attach a section to a menu item and its dropdown becomes whatever you designed. See Mega Menus.
- Announcement and promo bars. A strip above or below the header, limited by condition to a single campaign's landing pages.
- Blog archive layouts. The Post Loop Builder element takes over the default blog loop. See Special Locations.
- Store messaging. Promotions and notices dropped into the WooCommerce cart and checkout at the exact point you need them.
Where they live
Global Sections has its own item in the WordPress admin sidebar, below Salient. Sections are listed there like posts, and can be grouped with Global Section Categories once you have a few.
If the page builder does not appear when you edit a section, WPBakery has not been switched on for the post type yet. Go to WPBakery Page Builder > Role Manager, set Post Types to Custom, and tick salient_g_sections.