I currently have my homepage template set to “full width” because it’s the only way that doesn’t make the page look screwy. Here’s my sidebar.php code:
<div id=”sidebar_content”>
<!– Widgetized Areas –>
<div id=”donate-widget” class=”widget”>
<h3 style=”visibility: visible;”><span class=”typeface-js-vector-container”><canvas height=”18″ width=”65″ style=”margin-top: 0px; margin-bottom: 0px;”/><span class=”typeface-js-selected-text” style=”margin-left: -66px; letter-spacing: -0.125px; width: 65px;”>Support </span><canvas height=”18″ width=”32″ style=”margin-top: 0px; margin-bottom: 0px;”/><span class=”typeface-js-selected-text” style=”margin-left: -33px; letter-spacing: 0px; width: 32px;”>Our </span><canvas height=”18″ width=”48″ style=”margin-top: 0px; margin-bottom: 0px;”/><span class=”typeface-js-selected-text” style=”margin-left: -49px; letter-spacing: -0.2px; width: 48px;”>Cause</span></span></h3>
<div id=”donate-inner”>
<form method=”post” target=”_blank” action=”https://www.paypal.com/cgi-bin/webscr”>
<input type=”hidden” value=”_donations” name=”cmd”/>
<input type=”hidden” value=”[email protected]” name=”business”/>
<input type=”hidden” value=”Support Our Cause” name=”item_name”/>
<input type=”hidden” value=”0″ name=”no_note”/>
<input type=”hidden” value=”USD” name=”currency_code”/>
<input type=”hidden” value=”PP-DonationsBF:btn_donateCC_LG.gif:NonHostedGuest” name=”bn”/>
<input type=”submit” border=”0″ name=”submit” value=”Donate” class=”donate_side”/></form>
<p>Join the NMAA today</p>
<div class=”clear”/></div>
</div><div class=”widget widget_text” id=”text-3″><h3 style=”visibility: visible;”><span class=”typeface-js-vector-container”><canvas height=”18″ width=”32″ style=”margin-top: 0px; margin-bottom: 0px;”/><span class=”typeface-js-selected-text” style=”margin-left: -33px; letter-spacing: 0px; width: 32px;”>Our </span><canvas height=”18″ width=”58″ style=”margin-top: 0px; margin-bottom: 0px;”/><span class=”typeface-js-selected-text” style=”margin-left: -59px; letter-spacing: -0.142857px; width: 58px;”>Mission</span></span><span> </span></h3> <div class=”textwidget”>Our mission is to sustain our way of life by protecting land and water as community resources; and strengthening the farming and ranching traditions of our families and communities.</div>
<?php if(is_front_page() ) {
dynamic_sidebar(‘home’); }
elseif (is_single() || is_category() || is_archive() || is_page_template(‘template-blog.php’)) {
dynamic_sidebar(‘blog’);}
else {
dynamic_sidebar(‘general’);
} ?>
<!– /Widgetized Areas –>
<!– If no active widgets, display text –>
<?php if (is_front_page()) { if (!is_active_sidebar(home)){ ?><div id=”empty”></div><?php }} ?>
<?php if (!is_front_page() && !is_single() && !is_page_template(‘template-blog.php’) ) { if (!is_active_sidebar(general)){ ?><div id=”empty”></div><?php }} ?>
<?php if (is_single() || is_page_template(‘template-blog.php’)) { if (!is_active_sidebar(blog)){ ?></div><?php }} ?>
</div>
<!– /#sidebar –>