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

XF 1.5 How to check if forum home page in template?


XenForo developer
Staff member
Can you expand on the context and what template you're referring to specifically? The front page of the forum would generally be the forum_list template so if you're adding things there, that would be sufficient.


Well-known member
I use this in (any) template if I want to check *against* being loaded on the frontpage (or not) :
<xen:if is="{$viewName} == 'XenForo_ViewPublic_Forum_List'">..</xen:if>