ADS Issue?

ankitpokhrel

Member
Banned User
May 4, 2022
100
11
18
Where do I paste the Google AdSense ads code in the header of Xenforo?
How do I setup Google Adsense in Xenforo
 

alexmisaila

Legend member
Staff member
Moderator
Trusted Uploader
May 9, 2020
1,110
900
133
⭐⭐⭐⭐⭐
Where do I paste the Google AdSense ads code in the header of Xenforo?
How do I setup Google Adsense in Xenforo
To set up google adsense on xenforo:
  1. Log in to your XenForo admin control panel and go to the "Appearance" tab.
  2. In the left-hand menu, click on "Templates" and then "Add New Template Group".
  3. Enter a name for the template group (e.g. "AdSense") and click "Save".
  4. In the left-hand menu, click on "Templates" and then "Add New Template".
  5. In the "Template Title" field, enter a name for the template (e.g. "AdSense Header").
  6. In the "Template HTML" field, paste the AdSense code that you obtained from your AdSense account.
  7. Click "Save" to save the template.
  8. In the left-hand menu, click on "Appearance" and then "Templates".
  9. Find the template group that you just created (e.g. "AdSense") and click on it.
  10. Find the template that you just created (e.g. "AdSense Header") and click on it.
  11. Click on the "Insert" button next to the template to insert it into your forum's header.
  12. Repeat steps 5-12 to add AdSense code to other parts of your forum, such as the footer or the sidebar.
To insert your google adsense code into the header:
  1. Log in to your XenForo admin control panel and go to the "Appearance" tab.
  2. In the left-hand menu, click on "Appearance" and then "Templates".
  3. Find the template group that contains your AdSense code (e.g. "AdSense") and click on it.
  4. Find the template that contains your AdSense code (e.g. "AdSense Header") and click on it.
  5. Click on the "Insert" button next to the template to insert it into your forum's header.
  6. Save your changes and refresh your forum to see the AdSense ads in the header.
 

About us

  • Our community has been around for many years and pride ourselves on offering unbiased, critical discussion among people of all different backgrounds. We are working every day to make sure our community is one of the best.

Quick Navigation

User Menu