Adsense in sidebar


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.

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.