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

Adsense in sidebar

Discussion in 'Media Gallery Support' started by dutchbb, Mar 20, 2015.

  1. dutchbb

    dutchbb Well-Known Member

    What would be the easiest way to add Adsense in the XMG sidebar(s)? I looked in the templates but could not locate it.
  2. Chris D

    Chris D XenForo Developer Staff Member

    Search for templates with:

    Titles Contains: 'xengallery'
    Template Contains: 'xen:sidebar'

    There's only three. Just edit those templates with the ad code within the sidebar tags. You may also want to look at the "wrapper" templates. These are the left sidebars you see on the media, album and category home.

    An alternative would be to use the XenForo ad templates, e.g. ad_below_sidebar but you may need to use further conditionals to get it to only show in the places you want.
    dutchbb likes this.

Share This Page