Go to main content

Site slogan

Contents

Syntax

<txp:site_slogan />

The site_slogan is a single tag which is used to output the site’s tagline (labeled as ‘Site slogan’ in the Preferences panel).

The slogan is a brief (255 characters maximum) tagline or description of your site which can be used, for example, in XML feeds or site browser headers.

Attributes

This tag has no attributes of its own. It accepts only the global attributes .

Examples

Example 1: General display of slogan

<h2>
    <txp:site_slogan />
</h2>

Example 2: Slogan as content filler

The slogan could be used for the content attribute of the description metadata element. Either whole…

<meta name="description" content="<txp:site_slogan />">

or partial…

<meta name="description" content="<txp:site_slogan />. And the rest of your pithy description would go here.">

If you notice any kind of problem with this page's construction or content (outdated information, typos, broken links, or whatever), open an issue to have it sorted. Or have a go at it yourself. :)