Blog ad widget container added to allow styling
authorLaury GvR <laury@gaslightmedia.com>
Fri, 29 Jun 2018 18:22:36 +0000 (14:22 -0400)
committerLaury GvR <laury@gaslightmedia.com>
Fri, 29 Jun 2018 18:22:36 +0000 (14:22 -0400)
functions.php
sections/blog-single.php

index 41a4bbc..f219d89 100644 (file)
@@ -19,9 +19,7 @@ if (!function_exists('glm_quicksite_widget_init')) {
         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')
         ));
     }
 }
index 9ac2514..67e5a3c 100644 (file)
@@ -1,7 +1,9 @@
                     <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();?>