Closing div elements in the functions.php properly
-
I’m editing my child theme’s functions.php page to put in another div element and edited the “themeauthor” class element, but I’m unsure if I’m doing this correctly. I don’t know if the HTML syntax doesn’t render properly if the code stays the way the same at the moment:
if (!function_exists(‘skeleton_before_footer’)) {
function skeleton_before_footer() {echo ‘<div class=”clear”></div><div id=”footer” class=”‘.$class.’ sixteen columns”>’;
echo “</div><!–/#footer–>”.”\n”;
echo “</div><!–/#wrap.container–>”.”\n”;
echo “<div id=’home-info’>”.”\n”;
echo “For More information…
“.”\n”;
echo “</div><!–/#home-info–>”.”\n”;
echo “<div class=’themeauthor’>”.”\n”;
echo “<div class=’left’>© All Rights Reserved.”.”\n”;
echo “<div class=’right’>- Site Map – Disclaimer / Privacy Policy
“.”\n”;
/* echo ‘<div class=”clear”></div><div id=”footer”>’;
echo “<div class=\”‘.$class.’ sixteen columns container\”>”;*/
echo “</div><!– end footer –>”;
}
add_action(‘skeleton_footer’, ‘skeleton_before_footer’,1);
}Any thoughts? Thanks.
- The topic ‘Closing div elements in the functions.php properly’ is closed to new replies.