Support » Theme: Twenty Eleven » How can I change the viewable width for my posts and pages to 828 pixels?

  • Resolved corpsehustler

    (@corpsehustler)


    I have an iframe embedded page in one of my pages and the logo is 828 pixels and I’d like to change the default width of all of my pages to at least 828 pixels. Can someone help me with the code, and where to change it in my 2011 child theme?

    Corpsehustler T-Shirt Shop

    Unrelated: I am loving the ease of wordpress to create a clean and modern website that is very easy to update.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Moderator Andrew Nevins

    (@anevins)

    Forum moderator

    Did you put that iFrame in a post?

    Yes that iframe is part of the pages post content. But I would like to widen the area that my post content displays regardless.

    Moderator Andrew Nevins

    (@anevins)

    Forum moderator

    Activate your Child Theme within the dashboard.

    Michael

    (@alchymyth)

    Forum Moderator

    don’t edit Twenty Eleven directly;
    either create a child theme for the customisations, or if you only want to edit the css, use a custom css plugin.

    you will need to edit those styles:

    /* One column */
    .one-column #page {
    	max-width: 690px;
    }
    .one-column #content {
    	margin: 0 7.6%;
    	width: auto;
    }

    also, as Twenty Eleven is a ‘responsive’ theme, possibly change max-width to width; and reduce the margins of #content.
    you will need to find the exact values yourself.

    don’t forget to clear the browser cache (click ‘reload’ or press ‘CTRL F5’) to check if the changes to the css were successful.

    btw: this was previous asked and answered several times in this forum – forum search does often bring up solutions.

    Thanks @alchymyth I will take your suggestion to use the custom CSS plugin appreciate the link.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘How can I change the viewable width for my posts and pages to 828 pixels?’ is closed to new replies.