WordPress.org

Forums

twentyeleven page size adjustment (9 posts)

  1. WebAuthor5555
    Member
    Posted 3 years ago #

    I'm using twentyeleven for the first time. I want to get the page size to fill the browser window side-to-side, filling the aperture. In other words, I don't want any background area showing.
    Can't figure out how to do that. I've scanned through the style.css and functions.php files, but I'm lost, given I don't know the schema or logic used. (The style sheet is HUGE!!!)
    Anyone know a clean way of doing this?

  2. esmi
    Forum Moderator
    Posted 3 years ago #

    Do not edit the Twenty Eleven theme. It is the default WordPress theme and having access to an unedited version of the theme is vital when dealing with a range of site issues. Create a child theme for your changes.

  3. WebAuthor5555
    Member
    Posted 3 years ago #

    Yes, I should have mentioned that: I already have a child theme and it is working on its merits. I just need to get sides of the pages out to the browser edges.

  4. esmi
    Forum Moderator
    Posted 3 years ago #

    Have you tried using using Firefox with the Firebug add-on for this kind of CSS work.
    http://getfirebug.com/

  5. hulku
    Member
    Posted 3 years ago #

    You can basically delete the style declarations below, in style.css to give you 100% width.

    All other widths in the default style sheet seem to be in relative units so everything should just stretch to fit, but right at the bottom of the stylesheet there are some max-widths defined specifically for IE7 so you might want to have a look at those if you need to

    body {
    padding: 0 2em;
    }
    #page {
    margin: 2em auto;
    max-width: 1000px;
    }

  6. esmi
    Forum Moderator
    Posted 3 years ago #

    No! You do not delete CSS from the parent theme! You over-write the CSS in the child theme's stylesheet,

  7. WebAuthor5555
    Member
    Posted 3 years ago #

    Esmi, not to worry; I use child themes correctly.

    Yes, I use Firebug daily; but with the sheer size of the style file and not knowing the logic behind the structure (which there can be literally thousands of permutations), it couldn't be counted on this time. Thanks to Vayu and alchymyth, it was much easier to clean it up.
    Thanks.

  8. hulku
    Member
    Posted 3 years ago #

    @Esmi not everyone uses child themes, i just don't see the point myself since I never upgrade themes when new version are released. If i want a new clean twenty eleven theme I just dl a new one

    The important thing is which styles needed to be changed, which he couldn't find, i just pointed him to the rules that were determining the width.

    But your right!

  9. esmi
    Forum Moderator
    Posted 3 years ago #

    not everyone uses child themes

    Nevertheless the official line on this is that the default theme should never be modified.

Topic Closed

This topic has been closed to new replies.

About this Topic