Legal footer & xenOptions

Ryan Kent

Well-known member
I would like to add a "Legal" next to "Terms and Rules". I've successfully added Privacy Policy in the past but it seems XF had xen.Options already set up for that particular footer link. I tried adding the same style of code for "legal" but it isn't working.

Where can I view/add to make this code work?

<ul class="footerLinks">
            <xen:hook name="footer_links">
                <xen:hook name="footer_links_legal">
                    <xen:if is="{$xenOptions.legalUrl}"><li><a href="{$}">{xen:phrase legal}</a></li></xen:if>
                    <xen:if is="{$tosUrl}"><li><a href="{$tosUrl}">{xen:phrase terms_and_rules}</a></li></xen:if>
                    <xen:if is="{$xenOptions.privacyPolicyUrl}"><li><a href="{$xenOptions.privacyPolicyUrl}">{xen:phrase privacy_policy}</a></li></xen:if>


XenForo moderator
Staff member
Remove the if statement and change the variable to a URL and it will work fine.

For example:
<li><a href="url_to_page">{xen:phrase legal}</a></li>