• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF condition for page ?


Well-known member
I wanna include some JS and CSS code in header. But I only want it to appear at one specific page.
can someone guide me with <xen: if> condition for page, please ?
Thank You


XenForo moderator
Staff member
The template for a page node is pagenode_container

<xen:if is="{$contentTemplate} == 'pagenode_container'">
This content will show on pages