Support » Themes and Templates » Added widget above content, pushing right sidebar down

  • Resolved jamminjames

    (@jamminjames)


    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!

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Added widget above content, pushing right sidebar down’ is closed to new replies.