Content Wrappers

Many of the pages on your site, such as article pages, are dynamically created as the website visitor requests that content. The objects that appear around the dynamic content, such as ads and extra modules, are controlled via Content Wrappers.

A Content Wrapper includes up to four containers (as shown in Diagram A). For each of those containers a Template is selected.

Diagram A

Edit A Content Wrapper

During implementations, the Rayos team set up a Default Content Wrapper that is most commonly used for all the dynamic content on your site (others may have been created as part of your implementation, but all sites should have at least one). To add to or edit the content in the wrapper:

  1. Go to Configuration > Content Wrappers
  2. Find the wrapper in the list (the first wrapper is the default used for your articles and is usually named “Default Wrapper”) and determine the names of the templates in each container, or slot.
  3.  Then to edit the contents in the template, go to WPBakery Page Builder > Templates
  4. Find the Template you want to update, click to Edit, make your changes and Save. This will update on the site where ever the template is used.

Changing the content in templates used in a wrapper will cause the wrapper to change for all dynamic content that uses that wrapper.

Build A Custom Wrapper For Different Kinds Of Content

To create a new Content Wrapper, first start by making sure any new Templates that need to be created have been made.

  1. Go to Configuration > Content Wrappers
  2. Click Add Wrapper at the bottom of the page.
  3. In the dropdown menu for each slot (see Diagram A), select the template you want displayed.
  4. In the Post Types column, check the box next to the type or types of content where you want this wrapper used. (For instance, if you want to create a custom wrapper for all articles, check the box next to “Articles.”)
  5. Press the Update button.

Select A Custom Wrapper For A Single Article

By default, the first Content Wrapper in the Content Wrapper list will be selected as the wrapper for all articles. (This is almost always the “Default Wrapper.”) If you want to change the wrapper for a specific article, find the Content Wrapper box in the Article interface to select another wrapper.

Frequently Asked Questions

How do I make a new Content Wrapper the default for my articles?

The first Content Wrapper in the list of wrappers is automatically the default. To select a new default, move your cursor over the number to the left of the Content Wrapper you want to be the default then click and drag it up to the first position. Click Update to save the changes.

Why can’t I get my article footer content to appear above commenting and related content?

The commenting and related content plugins work by appending their code to the actual post, and the Content Wrappers go around the post. At this time, there is no way to insert Content Wrapper content above the commenting and related content elements.

I made a custom article wrapper, but it doesn’t have the same styles as the other right rails on my site. Why not?

Right rails often have a class added to the column, row, or individual objects to make the right rail content appear different from objects in the main body of the site. You can apply these styles to your custom wrapper by copying the class name you find in the column, row, or object and putting the same class in the applicable spot on your custom wrapper.

First, check the settings on the default right rail and see if it has a class such as “right-rail” in the column or row settings. You can check this by clicking on the edit pencil in the column or row, then scrolling down to the “Extra class name” box:

If you don’t see a class on the column or row, hover over the individual objects until the green edit box appears, click on the edit pencil, and see whether there is a class in the object’s “Extra class name” box.

How do I deselect a template in a Content Wrapper to leave that container empty?

There is a current known issue with the Content Wrapper interface that will not let you deselect a dropdown item once an item has been selected. To work around this problem, delete that wrapper and create a new one with that container empty.

What type of content can I create Content Wrappers for?

Content Wrappers can be assigned these content types when you create or edit a wrapper:

  • Articles
  • Media
  • Directories
  • Popups*
  • Races*
  • Links*
  • Manual Lists*
  • Author Bios
  • Archive pages
  • Search pages
  • 404 pages

These content types are not viewable on their own so assigning a content wrapper will not have an affect on the surrounding content.