Link to home

On this page:



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.


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.


    <txp:site_name />

Other tags used: site_name.

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