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

XF 1.1 How to detect if sidebar is present?


Well-known member
Is there any chance I can use xenforo conditionals for this?


<xen if="the current page has sidebar">
Display this content.
<else no sidebar on this page>
Display this Content.

Example pages with sidebar are:
forum_list, help pages,resource_description


XenForo moderator
Staff member
I don't think there is a condition for that but you can use an if statement with an array of all of those templates.