Hey everyone.
I've got a blog that I host, and in the sidebar it has the following code:
<div class="Left">
<?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar() ) : else : ?>
<br />
<div class="BlockContent">
<h2><?php _e('Calendar'); ?></h2>
<?php get_calendar(); ?>
</div>
<br />
<div class="BlockContent">
<?php wp_list_pages('depth=3&title_li=<h2>Pages</h2>'); ?>
</div>
<br />
<div class="BlockContent">
<h2><?php _e('Categories'); ?></h2>
<?php wp_list_cats('sort_column=name&optioncount=1&hierarchical=0'); ?>
</div>
<br />
<div class="BlockContent">
<h2><?php _e('Archives'); ?></h2>
<?php wp_get_archives('type=monthly'); ?>
</div>
<br />
<div class="BlockContent">
<?php get_links_list(); ?>
</div>
<br />
<div class="BlockContent">
<h2><?php _e('Meta'); ?></h2>
<?php wp_register(); ?>
<?php wp_loginout(); ?>
<?php wp_meta(); ?>
</div>
<?php endif; ?>
</div>
Now, in that code you'll notice the Calendar, Pages, Categories, Archives, Links and Meta are all in the BlockContent div style.
This is the style for that class:
.Left .BlockContent {
background: #fff;
border: 1px solid #dedac3;
padding: 10px;
}
Here's the issue, whenever I go into the admin section of the blog and add a widget on the sidebar (even adding just the ones that are there already) the formatting disappears and looking at the code, the "BlockContent" divs are replaced with calendar-3 pages-3, categories-3, archives-3, and linkcat-2.
How do make it so when I add a widget, it retains the formatting of the "BlockContent"