WordPress.org

Ready to get started?Download WordPress

Forums

how do I change fluid width theme to fixed width?! (4 posts)

  1. michelle cohen
    Member
    Posted 3 years ago #

    Please help, I've been trying this for days.
    I'm trying to change my WordPress site's theme from a variable width to a fixed width. Apparently this is easy to do, it was suggested on the theme's launch site that it would just be something simple such as this:

    For everyone who wants to make it a fixed width:
    Just create a div called, say “boxer”, and add this to style.css:

    #boxer {
    margin: 0 auto;
    width: 960px;
    }

    Then insert the #boxer div into the header.php before the #header div. Then end the #boxer div at the very bottom of the footer.php.

    //

    However, I just tried to do this (though perhaps I wasn't doing it right, I really need to know exactly what to insert and where) and it didn't seem to do anything.
    What's weirder is that I am pretty sure I did this successfully about a year ago and changed it back for some reason, but I can't remember how I did it.

    My site is:
    http://cityrat.com
    (test site (same theme) is:
    http://furgarden.com)

    and the theme i'm using is evidens white from design disease.
    http://designdisease.com/blog/evidens-wordpress-theme-release/
    The people who made the theme aren't very helpful because it's a free theme i assume.

    I would be most grateful for any assistance you can provide.

    thanknssssssss!!!

  2. cubecolour
    ɹoʇɐɹǝpoɯ
    Posted 3 years ago #

    I think what you probably need to add into your style.css is the snippet you listed above

    #boxer {
    margin: 0 auto;
    width: 960px;
    }

    Add <div id="boxer"> just after <body> in your header.php
    and
    </div> just before </body> in your footer.php

  3. michelle cohen
    Member
    Posted 3 years ago #

    Hey, that seems to have worked! No idea why I couldn't get it working before. Thank you!

  4. michelle cohen
    Member
    Posted 3 years ago #

    How weird. It worked on
    http://furgarden.com

    but not on

    http://cityrat.com

    ADDENDUM: seems to be working now, maybe it was cached or took a while for some reason...

Topic Closed

This topic has been closed to new replies.

About this Topic