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

XF 1.4 Googla Maps

Discussion in 'Styling and Customization Questions' started by secnam, Jun 23, 2015.

  1. secnam

    secnam Active Member

    Hi, can anyone recommend the best way to insert a Google map above the forums/threads.

    example, i have the following:

    {google map here}
    General Chat
    Car Faults
    Car sales


  2. Brogan

    Brogan XenForo Moderator Staff Member

    You can add the embed HTML to an ad template or custom template, using a conditional statement to target the specific pages you want.
  3. secnam

    secnam Active Member

    and any info/help on doing this?
  4. secnam

    secnam Active Member

    Also to add i am looking to add a different map in different forums/sections - is this possible.
  5. Brogan

    Brogan XenForo Moderator Staff Member

    Yes, just add the embed HTML code wrapped in the relevant conditional statement.

    See the link in my signature for a guide on those.
  6. secnam

    secnam Active Member

    ok, i added the following as a new template:

    <xen:if is="{$forum.node_id} == 137">
    This content will show in forum x

    but it isnt showing above the threads in that specific node?

    any ideas why
  7. Brogan

    Brogan XenForo Moderator Staff Member

    Which template did you add it to?

    The template needs to be called if it is to be displayed.
  8. secnam

    secnam Active Member

    i went to appearance, templates and then created the new template.

    How do i call it?

    sorry im not upto speed on xenforo.
  9. Brogan

    Brogan XenForo Moderator Staff Member

    I would recommend just using one of the ad_* templates rather than creating your own.
    secnam likes this.
  10. secnam

    secnam Active Member

    Sorted thank you, great support Brogan thanks.

Share This Page