Support » Theme: P2 » Change width of content area

  • Resolved mertnuhoglu


    I want to increase the width of the content area. Also I want that the images should use the whole width available. For example, I have some images with 1000 px. Even though I hide sidebar, the content area does not get bigger. How can I let p2 increase the width of the content area and let the images to fit to the new size?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Edit your stylesheet by going to Appearance > Edit CSS and insert:

    #header, #footer, #wrapper {
    width: 1000px;

    You probably want the width to be wider than 1000 pixels since there’s built-in padding in the left and right of the content area.

    Hope that helps.

    Thank you, this made it.

    But there is one thing more. If I hide the sidebar, this style will be overridden by inline css. In order to prevent it to be overridden, I put the following style declaration:

    body #header, body #footer, body #wrapper {
        width: 1200px;

    insert where in css?

    Moderator Kathryn


    andrew871 – don’t edit the theme files directly, otherwise your changes will be overwritten when the theme is updated.

    An easy way to add custom CSS is to install the Jetpack plugin and activate the Custom CSS module. You’ll then add your custom CSS in the new stylesheet editor that’ll appear in your dashboard, under Appearance > Edit CSS.

    As alternatives, you could either install a standalone custom CSS plugin, or create a child theme.

    If you need further help, please start a new thread. This one is nearly a year old and already marked as resolved. Thanks!

    well i need help i been asking and asking here and nobody seems to help… i want to know what i have to do or how to make my page like this person has theirs see how the html content over hangs the template this is what im trying to do so how do i do this

    Moderator Kathryn


    It looks like you’ve already started nearly a dozen duplicate threads. Please stick to one thread and provide a link to your site in that thread.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Change width of content area’ is closed to new replies.