Support
Support » Themes and Templates » Added widget above content, pushing right sidebar down
(@jamminjames)
11 years, 3 months ago
I’m trying to add some text above the center content on the home page, and want the two sidebars (left & right) to be unaffected, i.e. float to the top. However, it is pushing the right sidebar down.
I’ve styled it like so:
#sidebar-5 { float: left; margin: 0 auto; width: 570px; padding: 0 0 10px 0; }
and the PHP for the home page has divs added before the Content area for both the left sidebar and the widget I’m adding like so:
<div id="sidebar-3"> <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('sidebar-3') ) ?> </div> <div id="sidebar-5"> <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('sidebar-5') ) ?> </div>
[please remember to mark any posted code – http://codex.wordpress.org/Forum_Welcome#Posting_Code ]
Should I somehow combine those divs? Or what?
The page is at http://raftwet.com/wordpress_35564220/wordpress/
Thanks for any help!
(@alchymyth)
you possibly need to move the new sidebar to just inside the ‘content1’ div;
you could post the full code of the home page template – please use the pastebin – http://codex.wordpress.org/Forum_Welcome#Posting_Code
That did it, thanks!