[resolved] Added widget above content, pushing right sidebar down (3 posts)

  1. jamminjames
    Posted 2 years 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 id="sidebar-5">
    	<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('sidebar-5') ) ?>

    [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!

  2. Michael
    Part-Time Forum Moderator
    Posted 2 years ago #

    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

  3. jamminjames
    Posted 2 years ago #

    That did it, thanks!

Topic Closed

This topic has been closed to new replies.

About this Topic