Topics Map > University of Chicago > IT Services > Services & Support > Web Development/Hosting/Resources > UChicago Sites

UChicago Sites - Content - Adding Metatags

This article explains how to add metatags to basic pages and to the homepage on your UChicago Site.

Before you can add metatags to pages on your site, a site owner must first enable this functionality for the entire site. Once enabled, metatags for pages are automatically generated using the content's body or can be manually set using the body summary or by editing the 'Meta tags' tab. Site owners can also define metatags for your site's homepage

Enabling Metatags on the Configuration Page

While content editors can set metatags, a site owner must first enable them for the entire site.

  1. Navigate to the Configuration page by clicking the link on the admin panel at the top of your site. Once here, click the Site Settings and Features link.

  2. On the resulting page, expand the Features section. Once expanded, check the box for Metatags to enable them for your entire site.

  3. Be sure to click the Save settings button at the bottom of the page to save your changes.

Automatically Generated Metatags

Once a site owner has enabled metatags for your site, you do not have to do anything to automatically generate metatag descriptions for basic pages. However, we have included a brief description of how these metatag descriptions are generated so that you can create content with this system in mind.

By default, metatag descriptions are added to a basic page using the first 150 characters from the page's Body content. This is the large text field that most content editors use to display the bulk of a page's content, whether that be text, images, videos, or a combination of them.

This default behavior is overridden if a page's Body content has any text in its Summary section. If the summary section has any text, that text will then become the page's metatag description instead of the beginning of the body section. The summary section is expanded and edited by clicking the Edit summary link. If you are unsure about navigating to this section or if you are interested in changing the metatags by editing the Summary section, please continue to the next section of this article.

Manually Adding Metatags & Advanced Options

There are two different ways content editors and site owners can manually add or change a basic page's metatag description. As mentioned previously, one option is to edit the Summary section of a basic page and add the text there. Another option is to navigate to the Meta tags tab at the bottom of a basic page's editing page. This tab also allows editors to change some advanced options, like marking a basic page to not be indexed by search engines. Both methods are explained below.

Editing the Summary

As explained above, the default behavior is for metatag descriptions to use the first few lines from the Body content. This action is overridden if there is any text in the Summary section. The summary section is often overlooked by UChicago Sites editors, but it provides a field for editors to enter a quick summary about what is contained in the body section.

  1. To open the summary section for a basic page, first navigate to that page's particular editing page  by clicking the Edit tab on the basic page.

  2. Click the Edit summary link that is to the right of the Body title to display the Summary editor.

  3. When you are finished making your changes, be sure to click the Save button at the bottom of the page.

Once you have entered any text into the summary section, the metatag description for that basic page will no longer use the beginning of the body section but instead use the text you entered into the summary. This is the easiest way to change the description for a basic page.

Editing the Metatags Tab & Advanced Options

If you would like to dig deeper into the settings for metatags, you can do so by navigating to the Meta tags tab at the bottom of a basic page's editing page.

  1. Similar to the first step for editing the summary, navigate to the editing page for the basic page you would like to edit.
  2. Click the Meta tags tab at the bottom of the page to view the various options.

  3. On this tab, you can change the basic page's metatag title, and the description, abstract, and keywords.
  4. You can also edit various advanced options if you click and expand the Advanced section of this tab.

  5. When you are finished making your changes, be sure to click the Save button at the bottom of the page.

Adding Metatags to the Homepage

The process for adding metatags to the homepage of your site differs from adding metatags to basic pages. The process below can only be completed by site owners.

  1. Navigate to the Configuration page by clicking the link on the admin panel at the top of your site. Once here, click the Metatag link.

  2. Click the Override operation of the Global: Front page entry.
    Click the override link to add the homepage description

  3. The resulting page is very similar to the Meta tags tab found on the editing page for basic pages. You can change the front page's metatag title, and the description, abstract, and keywords. You can also choose from various advanced options by expanding the Advanced tab.
  4. When you are finished making your changes, be sure to click the Save button at the bottom of the page.



Keywords:template site website drupal body summary metatag   Doc ID:43992
Owner:Nana O.Group:University of Chicago
Created:2014-10-13 12:59 CSTUpdated:2016-12-28 07:54 CST
Sites:University of Chicago, University of Chicago - Sandbox
Feedback:  1   0