Quick HTML Question. Need help aligning widgets in my new dynamic sidebar…
-
My site is benbelack.com/blog
I use the Imprezz theme.Finally got my second sidebar (sidebar-right) dynamic. I can control it now in the control panel as I set out to do.
However, when I start adding widgets to this sidebar the alignment is all wrong. It actually posts underneath/behind sidebar one.
That doesn’t work. I trying to get all widgets after “Favorite Websites” aligned properly with what is already above.
I’m a bit of a newb, but I think since the sidebar is registered in the functions.php file, and its code is placed in the index.php file where it should be, what’s missing now is the HTML in the syles.css defining where the widgets go, padding, text, etc.
Please help!
Here is all relevant code:
From index.php<?php get_sidebar(); ?> <div class="sidebar-right"> <div class="twitter"> <div class="twitter-content"> <ul id="twitter_update_list"><li></li></ul></div> <script type="text/javascript" src="https://twitter.com/javascripts/blogger.js"></script> <script type="text/javascript" src="https://twitter.com/statuses/user_timeline/bbelack.json?callback=twitterCallback2&count=1"></script> <a class="followme" href="https://twitter.com/bbelack">Follow us on twitter</a> </div> <img src="<?php bloginfo('template_url'); ?>/images/pdlogo.gif" alt="productivedreams" class="pdlogo"/> </div> <?php dynamic_sidebar( 'sidebar-right' ); ?>
From functions.php
<?php if ( function_exists('register_sidebar') ) register_sidebar(array( 'before_widget' => '<li id="%1$s" class="widget %2$s">', 'after_widget' => '</li>', 'before_title' => '<h2 class="widgettitle">', 'after_title' => '</h2>', )); register_sidebar( array( 'sidebar-right' => 'sidebar-right', 'id' => 'sidebar-right', 'before_widget' => '<div id="%1$s" class="widget %2$s widget-%2$s"><div class="widget-inside">', 'after_widget' => '</div></div>', 'before_title' => '<h3 class="widget-title">', 'after_title' => '</h3>' ) );
From style.css
.sidebar-right{ width:175px; float: left; padding-top: 70px; margin-left: 12px; } .narrowcolumn, .widecolumn{ float: left; padding-top:40px; width:480px; } .narrowcolumn .post{ padding-right: 30px; position: relative; padding-bottom: 0px; padding-top: 113px; _overflow: hidden; _width: 468px; } p.postmetadata{ padding-bottom: 20px; display: none; } .comments a{ text-decoration: none; font-size: 12px; text-transform: lowercase; background: #D0E6EC url(images/comments.gif) no-repeat scroll 99% 50%; display: block; margin-left: -15px; padding-right: 25px; width:460px; text-align: right; margin-bottom: 20px; } .narrowcolumn .post .comments a span{ font-size: 12px; }
- The topic ‘Quick HTML Question. Need help aligning widgets in my new dynamic sidebar…’ is closed to new replies.