Skip to content

Instantly share code, notes, and snippets.

@scottnix
Created September 27, 2012 16:52
Show Gist options
  • Save scottnix/3795084 to your computer and use it in GitHub Desktop.
Save scottnix/3795084 to your computer and use it in GitHub Desktop.
Add MM_Preload Dreamweaver to Thematic body class
// add dreamweaver preloadimages attributes to body tag
// http://thematictheme.com/forums/topic/add-onload-to-body-on-homepage-only/
function childtheme_override_body() {
echo '<body ';
echo 'onload="MM_preloadImages(\'images/home_over_button.jpg\')" ';
body_class();
echo '>' . "\n\n";
}
//
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment