Help Center

Templates

Templates allow you to apply the same design to multiple pieces of content, such as blog posts, WooCommerce products, custom post types, archives, and more.

To access and manage Oxygen templates, login to the WordPress dashboard. From there, simply navigate to Oxygen and then to Templates.

Single Templates

A singular (or single) template is used to apply a consistent design across multiple pieces of individual content – whether they are posts or any custom post type.

Oxygen offers a visual interface for creating managing singular content templates. You can create and edit templates that apply to posts, pages, or custom post types using Oxygen.

In WordPress terminology, “singular” or “single” refers to any content that is displayed individually rather than as part of a list or archive. Singular content typically represents a single item like a post or or a custom post type.

  1. Post: This is a type of singular content that is typically used for blog articles. Each post you publish on a WordPress site has its own individual page where the full content of that post is displayed.
  2. Custom Post Type (CPT): WordPress allows developers to define their own content types, known as Custom Post Types. For instance, a real estate website might have a CPT named “Properties,” and each individual property listing would be a piece of singular content.

When you view a single post or custom post type entry on its own, you’re viewing “singular” content. This is in contrast to archive pages (like category archives or date archives) where multiple pieces of content are listed together.

The term “singular” in WordPress themes and templates is often used to refer to the template files that handle the display of such individual pieces of content. For instance, singular.php and single.php are a template files in the WordPress template hierarchy that can be used to display any singular content type if more specific templates. Oxygen provides a visual interface for creating these templates.

Selecting any option under the Single section for template location will make a template a single template.

Archive Templates

Contrasting with singles, archives in WordPress aggregate multiple content items of a similar kind, or collections. This could be a collection of blog posts from a specific month, WooCommerce products under a particular category, or any other group of related content.

For instance, when a user navigates to a category like “Travel,” an archive page lists all the posts under that category. Similarly, tags in WordPress have their own archive pages. Clicking on a tag like “Photography” would display all posts associated with that term.

WooCommerce applies the concept of archives to online stores. When a shopper clicks on a product category such as “Shoes,” they are directed to a product category archive that lists all items within that category. WooCommerce products can be tagged with descriptors, much like standard WordPress posts. Clicking on a product tag, for example “Waterproof” or “Vegan” could take you to an archive page presenting all products labeled with that specific tag.

Selecting any option under the Archive section for template location will make a template a single template.

Special Templates

The last template type you’ll encounter in WordPress are special templates, this could be the Search Results template or the 404 template.

Template Locations & Conditions

Oxygen allows you to determine where each template should be applied based on locations and conditions. This combination allows you to have exact control over where your templates show.

Locations are broad categories of where a template may be applied.

Conditions give the option to determine the circumstances where the template will be displayed.

Template Order

Setting the order of a template allows you to specify which template is shown when two or more templates meet the location and conditions requested by a page on the front end. The template with the highest number will be shown first. For example, a template with a priority of 40 will display first before a template with a priority of 20.