Documentation

All the information you need in one place

How to test Elementor Global Templates?

Elementor’s Theme Builder lets you customize every fundamental part of your WordPress site without coding including your HeaderFooterGlobal Pages and PostsGlobal Archives, Search Results, 404 Pages, and WooCommerce Products and Product Archives. These are what we call Elementor Global Templates because they override the current WordPress theme’s page hierarchy, layout settings, and CSS styles of your theme.

To access Elementor’s Theme Builder go to Elementor » Theme Builder from the WordPress admin menu. You will need to have Elementor Pro installed and activated on your WordPress site to be able to manage the global templates of the site parts in Elementor’s Theme Builder.

You can easily test Elementor Global Templates in Nelio A/B Testing 7.0 using Template Tests. Just follow the instructions from the WordPress dashboard:

  1. Under the Nelio A/B Testing menu, click on Tests to view and manage your tests.
  2. Click the Add Test button at the top of the screen.
  3. A pop-up window will open with all the types of tests you can create. Each of them has a name and an icon.
    • Click on Template.

Then, you need to set up the A/B test as explained in the instructions here.

First, select the template on which you want to perform the test (called “Control Version” or “Version A”). First, select the type of Elementor template you want to test. Next, select the specific template you want to test. Finally, you may select one or more templates as variants (version B and following) for the test.

List of template types, including Elementor Global Templates, in an A/B test of templates.
List of template types, including Elementor Global Templates, in an A/B test of templates.

As you can see in the previous image, you can test Elementor’s Global Templates for archives, single pages, single posts, products and product archives, 404 error pages, search results, and headers and footers.

The next steps to end the set up of the A/B test are the same as the ones described here for a regular WordPress template. Just follow the instructions and the A/B test of Elementor Global Templates will be ready to start.

Further considerations

Note that the A/B test of templates is not compatible with regular Elementor templates, which are like reusable blocks embedded inside the content of a regular page. You should use an A/B test of pages for that purpose. The templates that can be tested are the ones that you create through the Elementor’s Theme Builder.

In addition to it, note that you need at least two Global Templates of the same type in order to create a test. That is, if you have just one template for the 404 error page, you need to create another one beforehand in order to be able to create an A/B test of templates for the 404 error page with Nelio A/B Testing.

Also, templates may have specific conditions to be applied on. For instance, a Product template may only apply to a particular product from your WooCommerce store. If that is the case, the second template you need to create doesn’t have to declare conditions.

Once selected as version B for the A/B test, the template will be applied following the same conditions as the template for the version A. In fact, given two global templates with the same conditions, Elementor will choose the newest one to be applied by default, which may override your current template. That’s why it is important that you remove the conditions defined in the alternative templates that you create for the A/B test.

We also found an issue with Elementor global templates applied to a single content like a page or a post. If these pages or posts that match the conditions of the global template must use the default template of your WordPress theme. Otherwise, the global template will not be applied. Even though this is an issue unrelated to Nelio A/B Testing, we believe you should be aware of it.

Finally, you can combine A/B tests of templates that use regular WordPress templates and A/B tests of templates that use Elementor Global Templates. Just understand that if an A/B test of regular WordPress templates affects pages that use Elementor Global Templates, the pages using Elementor Global Templates will not be affected by the A/B test of regular WordPress templates. The test will not run on that pages to ensure the consistency of your content and prevent breaking pages built using Elementor global templates.