1. 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

Discussion in 'Closed Suggestions' started by surfsup, Jan 2, 2015.

  1. surfsup

    surfsup Well-Known Member

    Would be great to be able to add the contact form to any page we create on Xenforo.
  2. Brogan

    Brogan XenForo Moderator Staff Member

    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:

    <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>
    Obviously styling it to suit.
    surfsup and Adam K M like this.

Share This Page