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

Implemented Ability to add contact form to a page

Brogan

XenForo moderator
Staff member
#2
Do you mean Contact Us?

That is always available in the footer but if you want to include it in a page, just add the HTML like so:

HTML:
<xen:if is="{$xenOptions.contactUrl.type} === 'default'">
    <a href="{xen:link 'misc/contact'}" class="OverlayTrigger" data-overlayOptions="{&quot;fixed&quot;:false}">{xen:phrase contact_us}</a>
<xen:elseif is="{$xenOptions.contactUrl.type} === 'custom'" />
    <a href="{$xenOptions.contactUrl.custom}" {xen:if {$xenOptions.contactUrl.overlay}, 'class="OverlayTrigger" data-overlayOptions="{&quot;fixed&quot;:false}"'}>{xen:phrase contact_us}</a>
</xen:if>
Obviously styling it to suit.