aqaz69
08-12-2009, 07:58 PM
Hi everyone,
I really need help. I'm trying to add a second sidebar to my wordpress blog (I have one on the right, now I need a second one on the left).
The theme I am using is simplewp and the coding is listed below. Can you please tell me how to add this second sidebar?
THANKS!!!
functions.php:
<?php
if ( function_exists('register_sidebar') )
register_sidebar(array(
'before_widget' => '<div class="sidebar-item">',
'after_widget' => '</div>',
'before_title' => '<div class="title">',
'after_title' => '</div>',
));
?>
sidebar.php:
<div id="sidebar">
<center><script type="text/javascript"><!--
google_ad_client = "pub-xxxxxxx";
/* 160x600, created 6/25/08 */
google_ad_slot = "2796647982";
google_ad_width = 160;
google_ad_height = 600;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</center>
<p>
<center><script type="text/javascript"><!--
google_ad_client = "pub-xxxxxxx";
/* 160x600, created 6/25/08 */
google_ad_slot = "2796647982";
google_ad_width = 160;
google_ad_height = 600;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</center>
</div> <!-- Sidebar content div -->
</div> <!-- Sponsors div -->
<div id="sponsors">
</div> <!-- Sponsors div -->
</div> <!-- Sidebar content div -->
</div> <!-- Sponsors div -->
<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar() ) : ?>
</div> <!-- Sidebar content div -->
</div> <!-- Sponsors div -->
<?php endif; ?>
</div> <!-- Sidebar div -->
I really need help. I'm trying to add a second sidebar to my wordpress blog (I have one on the right, now I need a second one on the left).
The theme I am using is simplewp and the coding is listed below. Can you please tell me how to add this second sidebar?
THANKS!!!
functions.php:
<?php
if ( function_exists('register_sidebar') )
register_sidebar(array(
'before_widget' => '<div class="sidebar-item">',
'after_widget' => '</div>',
'before_title' => '<div class="title">',
'after_title' => '</div>',
));
?>
sidebar.php:
<div id="sidebar">
<center><script type="text/javascript"><!--
google_ad_client = "pub-xxxxxxx";
/* 160x600, created 6/25/08 */
google_ad_slot = "2796647982";
google_ad_width = 160;
google_ad_height = 600;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</center>
<p>
<center><script type="text/javascript"><!--
google_ad_client = "pub-xxxxxxx";
/* 160x600, created 6/25/08 */
google_ad_slot = "2796647982";
google_ad_width = 160;
google_ad_height = 600;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</center>
</div> <!-- Sidebar content div -->
</div> <!-- Sponsors div -->
<div id="sponsors">
</div> <!-- Sponsors div -->
</div> <!-- Sidebar content div -->
</div> <!-- Sponsors div -->
<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar() ) : ?>
</div> <!-- Sidebar content div -->
</div> <!-- Sponsors div -->
<?php endif; ?>
</div> <!-- Sidebar div -->
