http://webhostmaven.com On the homepage, I placed a widget under the 1st post (in this case the first post is "just host". There is too much "white" space between the just host post excerpt and my "news" banner. If I change the margin in the css, it changes all the margins for all the post excerpts on the homepage, I just want to reduce the white space between the first post and my "news" banner. Thanks in advance...
.textwidget { text-align: center; margin-top: -40px; } HTML: Not the cleanest way of achieving it but it works.
Actually, scratch that, I would like to move the "news" banner right below my comparison table but before any posts... Any suggestions?
Here is my function.php <?php register_sidebar( array( 'name' => 'index-insert', 'id' => 'index-insert', 'before_widget' => '<div id="%1$s" class="%2$s widget">', 'after_widget' => '</div>', 'before_title' => '<h3 class="widget-title">', 'after_title' => '</h3>' ) ); ?> And here is my index.php <?php if ($count==0) { ?> <?php dynamic_sidebar('index-insert') ?> <?php } ?> <?php $count = $count + 1; ?> But, I want it above the first post not after it.
Put it before the loop. Depends on how your theme was designed but look for something like this in the index.php or the loop.php file if you are using the new Twenty Ten theme: <?php while ( have_posts() ) : the_post(); ?> PHP: