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:

Diagram A

Edit Your Default Wrapper

During implementations, the GTxcel team set up a Default Wrapper that is most commonly used for all the dynamic content on your site. To add to or edit the content in the wrapper:

  1. Go to Content Wrapper
  2. Find the first wrapper in the list (usually named “Default Wrapper”) and determine the names of the templates in each container, or slot
  3.  Go to Visual Composer > Templates
  4. Edit the templates used in the Default Wrapper to add/edit content as needed

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

  1. Go to Visual Composer > Templates
  2. Create a new template(s).
  3. Go to Content Wrapper.
  4. Create a new wrapper.
  5. In the dropdown menu for each slot, select the template you want displayed.
  6. 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.”)
  7. 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

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.