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

XF 1.3 How to put ad only on homepage

Discussion in 'Styling and Customization Questions' started by Robby, May 2, 2014.

  1. Robby

    Robby Well-Known Member


    I would like to put an ad on the first page below the top breadcrumb. How can i prevent it to be shown on other pages?
  2. Brogan

    Brogan XenForo Moderator Staff Member

  3. Robby

    Robby Well-Known Member

    I don't see any conditional statements for just displaying on the home page.
    Just with forum id but the homepage doesn't have that.
  4. Valhalla

    Valhalla Well-Known Member

    You could modify the forum_list template and add what you want to show accordingly.

    If you want to show something below the navigation, then you should modify above:

    <xen:hook name="forum_list_nodes">
        <xen:if is="{$renderedNodes}"><xen:include template="node_list" /></xen:if>
  5. Robby

    Robby Well-Known Member

    Do i just have to put a template where it says include template in the code?
  6. Brogan

    Brogan XenForo Moderator Staff Member

    If by "home" page you mean the forum list, then:

    How can I show content on a specific page?
    <xen:if is="{$contentTemplate} == 'forum_list'">
    This content will show on the forum list
  7. Robby

    Robby Well-Known Member

    Yes that's it, thanks man!

Share This Page