---
title: Adsense
url: 'https://getgrav.org/forum/archive/adsense-t1412'
markdown: 'https://getgrav.org/forum/archive/adsense-t1412.md'
date: '2026-06-21'
description: 'Is there a way to add adsense code (or any HTML code for that matter) to the site? The HTML code is stripped out by the markdown coding method.'
---

[Archive](https://getgrav.org/forum/archive)

#  Adsense 

  Started by Muut Archive 12 years ago · 1 replies · 729 views    

 [12 years ago](https://getgrav.org/forum/archive/adsense-t1412#post-15555 "Permalink") 

Is there a way to add adsense code (or any HTML code for that matter) to the site? The HTML code is stripped out by the markdown coding method.

 [12 years ago](https://getgrav.org/forum/archive/adsense-t1412#post-15556 "Permalink") 

Something like that should be put in the theme, probably in the `partials/base.html.twig`. This way it will be included on all pages irrespective of the content.

If you do start editing the theme, I strongly suggest copying the default *antimatter* theme and changing the default theme in your `user/config/system.yaml`

[Log in](https://getgrav.org/login?return=%2Fforum%2Farchive%2Fadsense-t1412) to reply.

###  Suggested topics

 | Topic | Participants | Replies | Views | Activity |
|---|---|---|---|---|
| [About the Archive category](https://getgrav.org/forum/archive/about-the-archive-category-t6942)    [Archive](https://getgrav.org/forum/archive) · by Deleted User, 9 years ago |  | 0 | 2859 | [9 years ago](https://getgrav.org/forum/archive/about-the-archive-category-t6942 "by Deleted User") |
| [Hey buddies!](https://getgrav.org/forum/archive/hey-buddies-t643)    [Archive](https://getgrav.org/forum/archive) · by Muut Archive, 9 years ago |  | 2 | 1871 | [9 years ago](https://getgrav.org/forum/archive/hey-buddies-t643 "by Muut Archive") |
| [There is a way to do a "if condition" in MD page?](https://getgrav.org/forum/archive/there-is-a-way-to-do-a-if-condition-in-md-page-t3377)    [Archive](https://getgrav.org/forum/archive) · by Muut Archive, 9 years ago |  | 2 | 5198 | [9 years ago](https://getgrav.org/forum/archive/there-is-a-way-to-do-a-if-condition-in-md-page-t3377 "by Muut Archive") |
| [Official docker image of grav (+admin +gitsync)](https://getgrav.org/forum/archive/official-docker-image-of-grav-admin-gitsync-t8519)    [Archive](https://getgrav.org/forum/archive) · by Muut Archive, 9 years ago |  | 1 | 4012 | [9 years ago](https://getgrav.org/forum/archive/official-docker-image-of-grav-admin-gitsync-t8519 "by Muut Archive") |
| [Weird Grav + caddy + iOS + https problem](https://getgrav.org/forum/archive/weird-grav-caddy-ios-https-problem-t7837)    [Archive](https://getgrav.org/forum/archive) · by Muut Archive, 9 years ago |  | 3 | 1959 | [9 years ago](https://getgrav.org/forum/archive/weird-grav-caddy-ios-https-problem-t7837 "by Muut Archive") |
