Textpattern CMS Template Tags

<txp:link_to_home /> container tag, 1 attributes

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

class="unset" 
  • CSS class attribute to apply to the anchor. Will be ignored if used as a single tag.
<txp:link_to_home /> 1 examples

Home page link with Site’s name

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

Other tags used: site_name