Link to home

On this page:

Syntax

<txp:link_to_home>

The link_to_home tag is primarily a container tag that returns a link to the site’s home page. It will apply a hyperlink to whatever it wraps.

The tag can, however, be used as a single tag to generate a raw base URL of the site:

<txp:link_to_home />

In this mode it operates identically to site_url.

Attributes

Tag will accept the following attributes (case-sensitive):

Common presentational attributes

These attributes, which affect presentation, are shared by many tags. Note that default values can vary among tags.

  • class="class name" CSS class attribute to apply to the anchor. Will be ignored if used as a single tag. Default: unset.

Examples

<txp:link_to_home>
    <txp:site_name />
</txp:link_to_home>

Other tags used: site_name.

See something wrong in this document? Outdated info, a broken link, faulty code example, or whatever? Please write an issue and we’ll fix it.