Browse Source

Disables ads on the home page

Andrea Franceschini 8 years ago
parent
commit
e201ec9552
1 changed files with 3 additions and 1 deletions
  1. 3 1
      pages/_footer.php

+ 3 - 1
pages/_footer.php

@@ -1,4 +1,5 @@
-			<article class="body">
+		<?php if($bodyclasses != 'home page'): ?>
+			<article class="body" align="center">
 				<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
 				<!-- af-footer -->
 				<ins class="adsbygoogle"
@@ -10,6 +11,7 @@
 				(adsbygoogle = window.adsbygoogle || []).push({});
 				</script>
 			</article>
+		<?php endif ?>
 		</div> <!-- #inner_box -->
 	</div> <!-- #content_box -->