Can someone help me with the latest issue I have?

Discussion in 'HTML & Website Design' started by quatto, Dec 5, 2010.

  1. #1
    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...
     
    quatto, Dec 5, 2010 IP
  2. Simple Media

    Simple Media Peon

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    .textwidget
    {
        text-align: center;
        margin-top: -40px;
    }
    HTML:
    Not the cleanest way of achieving it but it works.
     
    Simple Media, Dec 5, 2010 IP
  3. quatto

    quatto Peon

    Messages:
    196
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Actually, scratch that, I would like to move the "news" banner right below my comparison table but before any posts...

    Any suggestions?
     
    quatto, Dec 5, 2010 IP
  4. quatto

    quatto Peon

    Messages:
    196
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    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.
     
    quatto, Dec 5, 2010 IP
  5. WebPageMistakes

    WebPageMistakes Well-Known Member

    Messages:
    91
    Likes Received:
    3
    Best Answers:
    1
    Trophy Points:
    110
    #5
    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:
     
    WebPageMistakes, Dec 6, 2010 IP