WordPress.org

Ready to get started?Download WordPress

Forums

P2
[resolved] [closed] Change width of content area (7 posts)

  1. mertnuhoglu
    Member
    Posted 11 months ago #

    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?

    http://wordpress.org/extend/themes/p2/

  2. simple1
    Member
    Posted 11 months ago #

    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.

  3. mertnuhoglu
    Member
    Posted 11 months ago #

    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;
    }
  4. andrew871
    Member
    Posted 3 weeks ago #

    insert where in css?

  5. 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!

  6. andrew871
    Member
    Posted 2 weeks ago #

    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 http://wwetube.net see how the html content over hangs the template this is what im trying to do so how do i do this

  7. 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.

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic

Tags