Skip to content

Instantly share code, notes, and snippets.

@archon810
Created September 6, 2012 04:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save archon810/3651381 to your computer and use it in GitHub Desktop.
Save archon810/3651381 to your computer and use it in GitHub Desktop.
=== classic-child-1/root-functions.php ===
add_filter('wptouch_the_content', 'my_wptouch_the_conten');
function my_wptouch_the_conten($content) {
if(is_singular()) {
$content .= "<div class='wptouch-custom-ad'><div style='text-align: center;'>
AD TAG GOES HERE
</div></div>
";
}
return $content;
}
add_filter('wptouch_body_bottom', 'my_wptouch_body_bottom', 1);
function my_wptouch_body_bottom() {
if(!is_singular()) {?>
<div class='wptouch-custom-ad'><div style='text-align: center;'>
AD TAG GOES HERE
</div></div>
<?php
}
}
=== classic-child-1/iphone/style.css ===
/* You can place your custom styles here */
#switch {
margin-top: 10px;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment