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

Condition for only rendering code on pages and threads

Discussion in 'XenForo Questions and Support' started by CivilWarTalk, Jul 13, 2012.

  1. CivilWarTalk

    CivilWarTalk Active Member

    Is there a way to setup a condition in a template so that a snippet of code will only be displayed on all threads and pages, but not in forum indexes or add-ons (like xenporta)?

    I use Viglink to monetize some links, but for speed purposes, I'd like it if I didn't load these .js files on the homepage (xenporta) and the forum indexes.
  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    CivilWarTalk likes this.
  3. CivilWarTalk

    CivilWarTalk Active Member

Share This Page