1. 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 add contact into left footer

Discussion in 'Styling and Customization Questions' started by bsdinsight, May 18, 2014.

  1. bsdinsight

    bsdinsight Active Member

    hi All

    I search footer, but do not know how to add content into left footer, please help me

    5-18-2014 2-50-25 PM.jpg
     
  2. bsdinsight

    bsdinsight Active Member

    Any ones help me.

    thanks in advance.
     
  3. Tracy Perry

    Tracy Perry Well-Known Member

    You have an arrow pointing at the style chooser... I'm assuming you want it adjacent to the style chooser. Or do you want it prior to it, or on a line above it. More specificity is required.

    It should be a matter of a simple footer template edit. In about 2 minutes this is what I got. It looks kind of goofy beside the style chooser like that if you want my honest opinion.
    Screen Shot 2014-05-19 at 1.19.51 AM.png

    It was done by moving the contact us section of the template to the bottom section of the style chooser. You will have to remember to comment out the normal contact us section otherwise it will show twice.

    Default section of footer template code
    Code:
                    <xen:if is="{$canChangeLanguage}">
                        <dt>{xen:phrase language}</dt>
                        <dd><a href="{xen:link 'misc/language', '', 'redirect={$requestPaths.requestUri}'}" class="OverlayTrigger Tooltip" title="{xen:phrase language_chooser}" rel="nofollow">{$visitorLanguage.title}</a></dd>
                    </xen:if>
                </dl>
          
                </xen:if>
    
    Modified section of footer template code
    Code:
                    <xen:if is="{$canChangeLanguage}">
                        <dt>{xen:phrase language}</dt>
                        <dd><a href="{xen:link 'misc/language', '', 'redirect={$requestPaths.requestUri}'}" class="OverlayTrigger Tooltip" title="{xen:phrase language_chooser}" rel="nofollow">{$visitorLanguage.title}</a></dd>
                    </xen:if>
                </dl>
                    <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>
    
              
                </xen:if>
    
     
    Last edited: May 19, 2014

Share This Page