Hey,
I’m working on a child theme for a theme which uses a it’s own functions.php which overrides it’s parent theme. When I upload the functions.php file i get the white screen.
Can anyone look at the code and help me fix it.
<?php
function childtheme_menu() {
echo '<div id="nav">
<ul id="menu">
<li id="aboutmenu"><a href="get_option('home') /about" title="About">About<em ></em></a></li>
<li id="teammenu"><a href="get_option('home') /team" title="Team">Team<em></em></a></li>
<li id="goalsmen"><a href="get_option('home') /plans" title="Plans">Plans<em></em></a></li>
<li id="newsmenu"><a href="get_option('home') /blog/" title="News">News<em></em></a></li>
<li id="donatmenu"><a href="get_option('home') /donations" title="Donate">Donate<em></em></a></li>
<li id="contmenu"><a href="get_option('home') /contact-us" title="Contact">Contact<em></em></a></li>
</ul>
</div>';
}
add_filter( 'sandbox_menu', 'childtheme_menu' );
function secondary_header() {
if ( is_front_page() ) {?>
<?php echo '<div id="homecont">
<div id="homeframe">
<span>1</span>
<div id="headleft">
<div id="homeinfo">
<li id="whatis">Donate</li>
<p>Socoba is a non-profit organization that is dedicated to improving the lives of children orphaned by HIV/AIDS. Currently Socoba is working in Mabule, Botswana to create a day care center for the children.</p>
</div>
<div id="learnmenu">
<ul>
<li id="learnmore"><a href="<?php echo get_option('home') ?>/about" title="Learn More">Learn More<em></em></a></li>
<li id="advocate"><a href="<?php echo get_option('home') ?>/advocate"title="Advocate">Advocate<em></em></a></li>
<li id="mdonate"><a href="<?php echo get_option('home') ?>/donate" title="Donate">Donate<em></em></a></li>
</ul>
</div>
</div>
<div id="headright">
<div id="latestnews">
<li id="newshead">Latest News</li>
<?php include (ABSPATH . '/wp-content/plugins/content-gallery/gallery.php'); ?>
</div>
<div id="businesslink">
<ul id="buslink">
<li id="buslink_1"><a href="<?php echo get_option('home') ?>/business"><span>Business</span></a></li>
</ul>
</div>
</div>
</div>
</div>
}
}
'; ?>
<?php }
add_action('thematic_belowheader','secondary_header');
?>