Removing div class from homepage only

gnate3

New Member
First I'll start by saying that I'm not PHP savvy in any way.I want my footer to display on all pages (wordpress site), not a problem right now. What I want, is for the \[code\]<div class="inner-footer-wrapper">\[/code\]to be hidden on the homepage. Here's what I have in my footer.php\[code\] <div id="footer"> <div class="inner-footer-wrapper"> <?php if (!is_page_template("template-maintenance-page.php") && $super_options[SN."_footer_widgets"]=="Yes") : ?> <div class="container clearfix"> <?php $footer_layout = $super_options[SN."_footer_layout"]; switch($footer_layout) { case "two-col" : echo '<div class="footer-cols one_half clearfix">'; dynamic_sidebar ("Footer Column 1"); echo "</div>"; echo '<div class="footer-cols one_half_last clearfix">'; dynamic_sidebar ("Footer Column 2"); echo "</div>"; break; case "three-col" : echo '<div class="footer-cols one_third clearfix">'; dynamic_sidebar ("Footer Column 1"); echo "</div>"; echo '<div class="footer-cols one_third clearfix">'; dynamic_sidebar ("Footer Column 2"); echo "</div>"; echo '<div class="footer-cols one_third_last clearfix">'; dynamic_sidebar ("Footer Column 3"); echo "</div>"; break; case "four-col" : echo '<div class="footer-cols one_fourth clearfix">'; dynamic_sidebar ("Footer Column 1"); echo "</div>"; echo '<div class="footer-cols one_fourth clearfix">'; dynamic_sidebar ("Footer Column 2"); echo "</div>"; echo '<div class="footer-cols one_fourth clearfix">'; dynamic_sidebar ("Footer Column 3"); echo "</div>"; echo '<div class="footer-cols one_fourth_last clearfix">'; dynamic_sidebar ("Footer Column 4"); echo "</div>"; break; case "five-col" : echo '<div class="footer-cols one_fifth clearfix">'; dynamic_sidebar ("Footer Column 1"); echo "</div>"; echo '<div class="footer-cols one_fifth clearfix">'; dynamic_sidebar ("Footer Column 2"); echo "</div>"; echo '<div class="footer-cols one_fifth clearfix">'; dynamic_sidebar ("Footer Column 3"); echo "</div>"; echo '<div class="footer-cols one_fifth clearfix">'; dynamic_sidebar ("Footer Column 4"); echo "</div>"; echo '<div class="footer-cols one_fifth_last clearfix">'; dynamic_sidebar ("Footer Column 5"); echo "</div>"; break; case "six-col" : echo '<div class="footer-cols one_sixth clearfix">'; dynamic_sidebar ("Footer Column 1"); echo "</div>"; echo '<div class="footer-cols one_sixth clearfix">'; dynamic_sidebar ("Footer Column 2"); echo "</div>"; echo '<div class="footer-cols one_sixth clearfix">'; dynamic_sidebar ("Footer Column 3"); echo "</div>"; echo '<div class="footer-cols one_sixth clearfix">'; dynamic_sidebar ("Footer Column 4"); echo "</div>"; echo '<div class="footer-cols one_sixth clearfix">'; dynamic_sidebar ("Footer Column 5"); echo "</div>"; echo '<div class="footer-cols one_sixth_last clearfix">'; dynamic_sidebar ("Footer Column 6"); echo "</div>"; break; case "one-third" : echo '<div class="footer-cols one_third clearfix">'; dynamic_sidebar ("Footer Column 1"); echo "</div>"; echo '<div class="footer-cols two_third_last clearfix">'; dynamic_sidebar ("Footer Column 2"); echo "</div>"; break; case "one-fourth" : echo '<div class="footer-cols one_fourth clearfix">'; dynamic_sidebar ("Footer Column 1"); echo "</div>"; echo '<div class="footer-cols three_fourth_last clearfix">'; dynamic_sidebar ("Footer Column 2"); echo "</div>"; break; case "one-fifth" : echo '<div class="footer-cols one_fifth clearfix">'; dynamic_sidebar ("Footer Column 1"); echo "</div>"; echo '<div class="footer-cols four_fifth_last clearfix">'; dynamic_sidebar ("Footer Column 2"); echo "</div>"; break; case "one-sixth" : echo '<div class="footer-cols one_sixth clearfix">'; dynamic_sidebar ("Footer Column 1"); echo "</div>"; echo '<div class="footer-cols five_sixth_last clearfix">'; dynamic_sidebar ("Footer Column 2"); echo "</div>"; break; } ?> </div> <?php endif; ?> </div> <div id="footer-menu"> <div class="container clearfix"> <p class="footer-text"><?php echo $helper->customFormat($super_options[SN."_footer_text"]); ?></p> <?php if(!is_page_template("template-maintenance-page.php") && $super_options[SN."_footer_menu"]=="Yes") : if(function_exists("wp_nav_menu")) { wp_nav_menu(array( 'theme_location'=>'footer_nav', 'container'=>'ul', 'depth' => 1 ) ); } endif; ?> </div> </div> </div> <script type="text/javascript"> <?php echo stripslashes($super_options[SN."_tracking_code"]); ?> </script> <?php wp_footer(); ?> </body> </html>\[/code\]I've tried to do an if is_home statement but I don't have enough knowledge to know where it goes. Any help? Thanks!
 
Back
Top