WordPress.org

Ready to get started?Download WordPress

Forums

Theme: Twentyeleven - Maximun Width (5 posts)

  1. gsbohn
    Member
    Posted 1 year ago #

    I am using a child theme for twentyeleven. I would like to extend the width of the main center and right-hand index column.

    Is there a maximum? The style.css shows it as 900px. I would like to take it up to approx 1200 (700 + 400 balance in margins or center)

    Is this do-able?

    Can anyone recommend a stable theme similar with flexible widths?

    Period Drama

  2. Andrew
    Forum Moderator
    Posted 1 year ago #

    It is doable.

    You can copy what ever is in style.css and paste it in your Child Theme stylesheet. Then change what ever you want in your Child Theme, e.g from 900px to 1200px.

    Make sure to delete styles you're not changing.

  3. gsbohn
    Member
    Posted 1 year ago #

    I took the original stylesheet, placed it in the child theme, and have made changes to that one. Are you saying that everything that is NOT changed in the child-them stylesheet should be deleted?

    Also I do not quite understand all of the code to make these changes.

  4. Andrew
    Forum Moderator
    Posted 1 year ago #

    You don't need to copy your stylesheet from the theme into the Child Theme, you can just import the styles over, as seen in this example by Codex.

    Are you saying that everything that is NOT changed in the child-them stylesheet should be deleted?

    I meant if you're going to copy line 71 from style.css from the main theme

    #page {
    margin: 0em auto;
    max-width: 900px;
    }

    into the Child Theme

    #page {
    margin: 0em auto;
    max-width: 900px;
    }

    you can do so but if you're only changing the width, you can remove the margin style as it's only going to clutter up your website

    #page {
    max-width: 1200px;
    }
  5. gsbohn
    Member
    Posted 1 year ago #

    Much thanks.

    I will work with your suggestions.

    Appreciated.

Topic Closed

This topic has been closed to new replies.

About this Topic