Go to main content

Site name



<txp:site_name />

The site_name tag is a single tag that returns the site’s name as defined within the Preferences panel.


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


Example 1: Display the site’s name

    <txp:site_name />

Example 2: Using global attributes to wrap and label the tag

<txp:site_name labeltag="h2" label="Welcome" wraptag="h3" class="heading" />

Would render this HTML:

<h3 class="heading">My site</h3>


Version 4.0.6

Tag renamed from <txp:sitename /> to <txp:site_name />.

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. :)