Anyone good at code? Need some help with my footer.***RESOLVED***

by Oeshy 6 replies
Hi I have been trying to fix my footer for a while. It has three sections. The middle section works perfect. The left is currently empty and the right section is functional but out of proportion with the middle.

I am using SK Latest Posts widget to pull information in my forum and display it in my footer.

Website is in my sig

What I want to do is make the right footer the same proportion as the middle.

Thanks for the help guys. you rock.

Here is the footer code.

Code:
</div>  

<div id="front-popular" class="clearfloat">

<div id="recentpost" class="clearfloat">
<?php     /* Widgetized sidebar, if you have the plugin installed. */                     if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar(5) ) : ?>         
<?php endif; ?></div>         

<div id="mostcommented" class="clearfloat">
<h3>Most Commented</h3>
<ul><?php  = ("SELECT comment_count,ID,post_title FROM  ORDER BY comment_count DESC LIMIT 0 , 5");     foreach ( as ) {      = ;      = ;      = ;      if ( != 0) { ?>     <li><a href="<?php echo get_permalink(); ?>" title="<?php echo  ?>"><?php echo  ?></a></li>     <?php } } ?>  
</ul>

<?php     /* Widgetized sidebar, if you have the plugin installed. */                     if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar(6) ) : ?> 
<?php endif; ?>
</div>

<div id="recent_comments" class="clearfloat">
<?php if (function_exists('get_most_viewed')): ?>
<h3>Most Viewed</h3>
<ul>
   <?php get_most_viewed('post',5); ?>
</ul>
<?php endif; ?>

<?php     /* Widgetized sidebar, if you have the plugin installed. */                     if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar(7) ) : ?> 
<?php endif; ?>
</div>
</div>

<div id="footer"> <?php wp_footer(); ?> Powered by <a href="link/">WordPress</a> | <?php if ( is_user_logged_in() ) { ?> <?php wp_register('', ''); ?> | <?php } ?> <?php wp_loginout(); ?> | <a href="<?php bloginfo('rss2_url'); ?>">Entries (RSS)</a> | <a href="<?php bloginfo('comments_rss2_url'); ?>">Comments (RSS)</a>

<!-- <?php echo get_num_queries(); ?> queries. <?php timer_stop(1); ?> seconds. -->

</div>

</body>
</html>
Here is the code for the CSS regarding the footer.

Code:
/* Footer*/

#front-popular {
    font-size:0.7em;
    color:#fff;
    width: 940px;
    background:#2c2c2c url(images/bottombar.png) bottom no-repeat;
    margin: 0 auto;
    padding:10px;
    }

#recentpost, #mostcommented {
    width:280px;
    float:left;
    padding:10px;
    border:1px solid #fff;
    }

#mostcommented {
    margin-left:17px;
    }

#recent_comments {
    width:280px;
    float:right;
    padding:10px;
    border:1px solid #fff;
    }

#recentpost a, #mostcommented a, #recent_comments a {
    color:#fff;
    }

#recentpost ul, #mostcommented ul, #recent_comments ul {
    margin-top:5px;
    }

#recentpost ul li, #mostcommented ul li, #recent_comments ul li {
    list-style:none;
    border-top:1px dotted #fff;
    padding:5px;
    display:block;
    }

#recentpost ul li:hover, #mostcommented ul li:hover, #recent_comments ul li:hover {
    background:#3c78a7;
    color:#fff;
    }

#recentpost ul li:first-child, #mostcommented ul li:first-child, #recent_comments ul li:first-child {
    border-top:0px dotted #fff;
    }


#footer {
    margin: 0 auto;
    width: 960px;
    font-size:0.6em;
    padding-top:10px;
    padding-bottom:10px;
    }
#website design #code #footer #good
Avatar of Unregistered
  • Profile picture of the author zargonoth
    Your stylesheet is fine.

    You just have uneeded <p> tags in your right column content.
    Get rid of those <p> tags and you'll be fine.


    Middle code:
    <li><a title="Fight Tourist.com Launched!" href="http://fighttourist.com/featured/hello-world/" bitly="BITLY_PROCESSED">Fight Tourist.com Launched!</a>


    </li>


    Right Code:
    <p><a href="http://fighttourist.com/forums/viewtopic.php?f=5&amp;t=17&amp;p=92#p92" bitly="BITLY_PROCESSED">Fedor vs Brett Rogers - who takes it?</a>
    </p>


    Ya. However you're importing the data, make sure it strips out the paragraph tag.
    {{ DiscussionBoard.errors[1176240].message }}
  • Profile picture of the author Oeshy
    [DELETED]
    {{ DiscussionBoard.errors[1176336].message }}
    • Profile picture of the author zargonoth
      Originally Posted by Oeshy View Post

      Want me to link the code from the widget file?
      Sure, If i'm not around in bit, someone else could chime in. I'll add the plug in to one of my sites and see why it behaves that way.

      Funny thing is: Your middle column came out fine. Was that produced by the plugin as well?
      {{ DiscussionBoard.errors[1176352].message }}
  • Profile picture of the author Oeshy
    I am getting an error trying to post it for some reason. Can I send it via email?

    The middle column is not using the plugin only the right column
    {{ DiscussionBoard.errors[1176379].message }}
  • Profile picture of the author zargonoth
    sure - emails in the profile

    Have you tried removing the entries/feed and retracing the process you used for the middle footer portion?
    {{ DiscussionBoard.errors[1176425].message }}
    • Profile picture of the author Oeshy
      Originally Posted by zargonoth View Post

      sure - emails in the profile

      Have you tried removing the entries/feed and retracing the process you used for the middle footer portion?
      crap I cannot email until I have 20 posts. I shouldn't of been lurking so long! haha

      I left my email on your profile visitor message. If you could email me I will reply with the code from the widget.

      The widgets name is SK Latest Posts if you wanted to check it out yourself even.

      Thanks again I really appreciate the help.
      {{ DiscussionBoard.errors[1176448].message }}
  • Profile picture of the author Oeshy
    OMGGGGGGGGGGGGGGGGGGGGGGGGGGGG

    I fixed it!

    #recent_comments ul li p {margin:0; padding:0;}

    thankyou for your patience and help Zarg.
    {{ DiscussionBoard.errors[1176458].message }}
Avatar of Unregistered

Trending Topics