function seattlemennonite_body_classes($classes) { // Based on the menu section, assign the appropriate body class. $section = seattlemennonite_section(); if ($section) { $classes[] = 'section-' . sanitize_title($section['title']); } else { $classes[] = 'section-general'; } return $classes; }
<div id="container"> <div id="header"> <h1> <a href="<?php echo get_option('home'); ?> /"> <?php bloginfo('name'); ?> </a> </h1> <?php $section = seattlemennonite_section(); ?> <p class="section-title"> <?php if ($section && strtolower($section['title']) != 'home') { ?> <a href="<?php print $section['url']; ?> "><?php print $section['title']; ?> </a> <?php } else { ?>