+ Reply to Thread
Results 1 to 1 of 1

Thread: How to increase width of sidebar one and remove sidebar 2?

  1. #1
    ataarticles is offline x10Hosting Member ataarticles is an unknown quantity at this point
    Join Date
    Jun 2010
    Posts
    45

    How to increase width of sidebar one and remove sidebar 2?

    Ok
    I have been trying to figure out how to increase width of sidebar one of my site:

    http://www.ataarticles.com/

    by referring to the css template here:
    http://www.ataarticles.com/wp-conten...tory/style.css

    When i try to increase the sidebar, it increases but the light grey vertical line which divides sidebar one and two does not change. I moved all sidebar 2 content onto sidebar 1, hence sidebar 2 is blank so that i can remove it

    Anyone know which code in the sidebar section needs changing so that the grey vertical line increases along with the text.



    Thanks.

    /* Sidebars
    -----------------------------------------------------------------------------*/

    #sidebars {
    float: left;
    width: 440px;
    font-size: 11px;
    line-height: 17px;
    }
    * html #sidebars {height: 1%;}
    #sidebars:after {
    content: '.';
    display: block;
    clear: both;
    visibility: hidden;
    height: 0;
    }

    #l-sidebar {
    float: left;
    width: 210px;
    padding: 0 10px;
    }
    #r-sidebar {
    float: left;
    width: 180px;
    padding: 0 0 0 10px;
    }

    #sidebars ul {
    margin: 0 0 15px;
    }
    #sidebars li {
    list-style: none;
    border-bottom: 1px solid #EEE;
    padding: 3px 4px;
    margin: 0;
    }
    #sidebars li a {
    background: url(i/arrow.gif) no-repeat center left;
    padding: 0 0 0 12px;
    color: #000000;
    }
    #sidebars h2 {
    font: normal 11px "Trebuchet MS", Arial, Sans-Serif;
    padding: 0 0 3px 3px;
    border-bottom: 1px solid #EEE;
    }
    #sidebars h3 {
    font: normal 12px/12px "Trebuchet MS", Arial, Sans-Serif;
    padding: 0 0 3px;
    }
    #sidebars .post {
    margin: 0 0 24px;
    }
    #sidebars p {
    padding: 0;
    }
    #sidebars .postmetadata {
    font-size: 11px;
    }

    ---------- Post added at 03:48 PM ---------- Previous post was at 03:42 PM ----------

    Also to remove sidebar 2...
    after researching some forums, there was suggestions to include the code:
    #sidebar { display:none;}
    in sidebar.php and index.php where i replace the code: < ? php get_sidebar(); ? > with <?php if (!is_front_page()) {
    get_sidebar();
    } ?>

    But that doesn't work as it only shows as blank sidebar but doesn't completely remove it.
    Also, when i try to delete the code for sidebar 2 only in sidebar.php, both sidebar one and two is blank.


    </div><!-- end #l-sidebar -->

    <div id="r-sidebar">

    <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Sidebar 2') ) : ?>
    <?php endif; ?>

    </div><!-- end #r-sidebar -->
    </div><!-- end #sidebars -->
    Last edited by ataarticles; 07-11-2010 at 10:52 AM.

+ Reply to Thread

Similar Threads

  1. How can i increase the width of both left/right padding of website
    By ataarticles in forum Graphics & Webdesign
    Replies: 3
    Last Post: 06-19-2010, 07:44 AM
  2. How to show Recent articles in sidebar 1
    By ata.online in forum Scripts & 3rd Party Apps
    Replies: 3
    Last Post: 05-26-2010, 02:17 PM
  3. Sidebar displaying wrong
    By reevesii2010 in forum Programming Help
    Replies: 5
    Last Post: 05-17-2010, 04:58 AM
  4. CSS Width
    By devongovett in forum Programming Help
    Replies: 1
    Last Post: 11-22-2008, 08:57 AM
  5. { width:95%; min-width:IE SUCKS !important; }
    By DecemberGuild in forum Scripts & 3rd Party Apps
    Replies: 4
    Last Post: 11-01-2006, 02:12 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers