Strict Standards: Redefining already defined constructor for class bbdb in /home/themes/public_html/forums/bb-includes/db-mysql.php on line 12

Strict Standards: Declaration of BB_Walker_Blank::start_lvl() should be compatible with BB_Walker::start_lvl($output) in /home/themes/public_html/forums/bb-includes/classes.php on line 1127

Strict Standards: Declaration of BB_Walker_Blank::end_lvl() should be compatible with BB_Walker::end_lvl($output) in /home/themes/public_html/forums/bb-includes/classes.php on line 1127

Strict Standards: Declaration of BB_Walker_Blank::start_el() should be compatible with BB_Walker::start_el($output) in /home/themes/public_html/forums/bb-includes/classes.php on line 1127

Strict Standards: Declaration of BB_Walker_Blank::end_el() should be compatible with BB_Walker::end_el($output) in /home/themes/public_html/forums/bb-includes/classes.php on line 1127

Warning: Cannot modify header information - headers already sent by (output started at /home/themes/public_html/forums/bb-includes/db-mysql.php:12) in /home/themes/public_html/forums/my-templates/kakumei-variant/rss2.php on line 1
ThemeShaper Forums Topic: Add onload to body on homepage only http://forums.themeshaper.com/ Help In Shaping WordPress Themes en Sat, 23 May 2015 04:14:50 +0000 em hr on "Add onload to body on homepage only" http://forums.themeshaper.com/topic/add-onload-to-body-on-homepage-only#post-27728 Sat, 15 Dec 2012 17:55:25 +0000 em hr 27728@http://forums.themeshaper.com/ <p>Please <a href="http://forums.themeshaper.com/topic/please-read-this-before-adding-new-topics-thematic-has-moved"> read this</a> and come to then new <a href="http://thematictheme.com/forums/">ThematicTheme Forums</a> for support. </p> janimal on "Add onload to body on homepage only" http://forums.themeshaper.com/topic/add-onload-to-body-on-homepage-only#post-27664 Thu, 01 Nov 2012 09:22:55 +0000 janimal 27664@http://forums.themeshaper.com/ <p>I haven't tried this but...</p> <p>The code for the body tag is in thematic\library\extensions\dynamic-classes.php</p> <p>So you could create an override for thematic_body() and insert your code to test whether the given page is the home page<br /> <pre><code>if (is_home() || is_front_page()) {...}</code></pre> <p>and add the appropriate mark-up to the tag.</p> <p>Hope this helps... </p> jhkoning on "Add onload to body on homepage only" http://forums.themeshaper.com/topic/add-onload-to-body-on-homepage-only#post-27615 Thu, 13 Sep 2012 01:30:32 +0000 jhkoning 27615@http://forums.themeshaper.com/ <p>Hi there,<br /> I'm no further ahead with this - can anyone help me - please?<br /> Thanks in advance,<br /> Jas </p> jhkoning on "Add onload to body on homepage only" http://forums.themeshaper.com/topic/add-onload-to-body-on-homepage-only#post-27602 Fri, 31 Aug 2012 09:36:31 +0000 jhkoning 27602@http://forums.themeshaper.com/ <p>Hi there,<br /> The subject pretty much says it all, but how would I add, say this;</p> <p>onload="MM_preloadImages('/images/png/better-dog.png')" class="home"</p> <p>For arguments sake, to the &lt;body&gt; tag for the homepage only?<br /> Any ideas GREATLY appreciated :)<br /> Thanks in advance,<br /> Jas </p>