register_sidebar(array(
'name' => __('Blog Post Ads - Top'),
'id' => 'post-ads-top',
- 'description' => __('Area for ads displayed before content on blog posts'),
- 'before_widget' => '<div id="post-ads-top">',
- 'after_widget' => '</div>',
+ 'description' => __('Area for ads displayed before content on blog posts')
));
}
}
<main class="blog-single">
<div class="row">
<?php if ( !function_exists('post-ads-top') ) { ?>
- <?php dynamic_sidebar("Blog Post Ads - Top"); ?>
+ <div id="post-ads-top">
+ <?php dynamic_sidebar("Blog Post Ads - Top"); ?>
+ </div>
<?php } ?>
<div id="blog-posts-over" class="small-12 medium-9 columns">
<?php if(have_posts()) : while(have_posts()): the_post();?>