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

XF 1.4 Keeping ad_below_top_breadcrumb from displaying on "post new topic" or "full reply" pages

Discussion in 'XenForo Questions and Support' started by Sal Collaziano, Jan 29, 2015.

  1. Okay, I must be using the wrong template name. Would somebody point me in the right direction? I have a 728x90 leaderboard in my ad_below_top_breadcrumb template but I don't want it appearing on the page where people are posting a new topic (create-thread) OR doing a full reply (ad-reply).

    <xen:if is="{$contentTemplate} != 'create_thread'">
  2. Valhalla

    Valhalla Well-Known Member

    <xen:if is="!in_array({$contentTemplate}, array('thread_create', 'thread_reply'))">
  3. ...is there a list of page names associated with their template names?
  4. Thank you, I'll try that now...
  5. Valhalla

    Valhalla Well-Known Member

    See this post: https://xenforo.com/community/threads/frequently-asked-questions.5183/#post-181112

  6. melbo

    melbo Well-Known Member

    I would suggest using responsive ads since your site will be responsive on mobile view. A hard coded leaderboard will break views from mobile
  7. My leaderboard is actually a Google Adsense ad. Can't that be hard coded as a responsive ad? Right now I'm just setting up everything the way I have it on my vBulletin forum and figured I'd switch everything to responsive code once I saw everything working properly...
  8. melbo

    melbo Well-Known Member

    Yeah, you can select responsive from adsense and it will deliver the ad size based on device screen size. Will alwyas be your full size leaderboard on desktop, etc
    Sal Collaziano likes this.
  9. Brogan

    Brogan XenForo Moderator Staff Member

Share This Page