WordPress.org

Support

Support » Themes and Templates » [Resolved] how to change the width of a fixed width theme ?

[Resolved] how to change the width of a fixed width theme ?

  • aman_devy
    Member

    @aman_devy

    hi folks
    I’m using monospace theme having fixed page width property.
    I want to change the page width, post content width and sidebar width according to my requirements.
    what changes to CSS should I make to accomplish this.
    my website is http://www.kodevelop.com

    thanks in advance ! 🙂

Viewing 2 replies - 1 through 2 (of 2 total)
  • Michael
    Forum Moderator

    @alchymyth

    in header.php of your theme:

    <?php if (!isset($content_width)) $content_width = 560; ?>
    
    	<div id="wrap" style="width:<?php echo $content_width + 290; ?>px">
    
    		<div id="container" style="width:<?php echo $content_width; ?>px">

    change 560 (content) and 290 (sidebar) to what sizes you need;

    also in style.css:

    #sidebar { overflow:hidden; clear:left; text-align:right; width:250px; height:auto; padding:0px 15px 0px 0px; border-right:1px dotted #C8C8C8; }

    change the 250px accordingly – needs to be 40px smaller than what you use instead of the 290 in header.php

    (untested)

    aman_devy
    Member

    @aman_devy

    thanks a lot !
    its working 🙂

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] how to change the width of a fixed width theme ?’ is closed to new replies.