Hide

On this page:

Syntax

<txp:hide />

The hide tag is a container tag which is used to suppress the interpretation of all enclosed contents. Use it for comments, temporary concealment of article text parts or non-destructive form changes.

Attributes

This tag has no attributes.

Examples

Example 1: Insert a useful note in a template

<txp:hide>This is a work-around for a bug in Internet Explorer, again</txp:hide>

Example 2: Comment out part of a form for testing

If you want to try something out to see how it affects the layout without actually deleting the content, wrap it in hide tags:

<div class="entry-content">
    <txp:body />
</div>
<txp:hide>
    <address class="vcard author">
        <span class="fn">
            <txp:author />
        </span>
    </address>
    <txp:comments_invite wraptag="p" />
</txp:hide>

Renders the body text inside the <div class="entry-content"> but skips the <address> and <txp:comments_invite /> tags.

Other tags used: body, author, comments_invite.

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.