Viewing 6 replies - 1 through 6 (of 6 total)
  • Wild Jim

    (@smokingblends)

    Give this a try.

    Adjust the width to what you want. Add it to your custom css in the customizer.

    main#main.site-main {

    width: 1400px;

    }

    Wild Jim

    (@smokingblends)

    I just tested this on a wider screen. Unfortunately, it does not work.

    This should work. Adjust the max-width to the size you want.

    body.page .entry .entry-content > *, .entry .entry-summary > * {
    max-width: 1200px;
    }
    /* Blog Pages * /
    .entry .entry-content p {
    max-width: 1200px;
    }

    Some of the content on the pages does not get wider.

    For example the ol and li sections. I can not figure out how to make them wider.

    If you run that down let me know.

    • This reply was modified 7 years, 2 months ago by Wild Jim.
    • This reply was modified 7 years, 2 months ago by Wild Jim.
    • This reply was modified 7 years, 2 months ago by Wild Jim.
    • This reply was modified 7 years, 2 months ago by Wild Jim.
    • This reply was modified 7 years, 2 months ago by Wild Jim.
    Thread Starter stalyn

    (@stalyn)

    Didn’t work. But thank you.

    Wild Jim

    (@smokingblends)

    It worked on our site.

    Did you use both codes?

    Here

    /* Blog Pages */ < this had a space and shut down the code for the blog pages.

    body.page .entry .entry-content > *, .entry .entry-summary > * {
    max-width: 1200px;
    }

    /* Blog Pages */
    .entry .entry-content p {
    max-width: 1200px;
    }

    • This reply was modified 7 years, 2 months ago by Wild Jim.
    • This reply was modified 7 years, 2 months ago by Wild Jim.
    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    @stalyn, Can you provide a link to the page that you want the content width changed? As Jim mentioned, it worked on his site and there’s not a lot we can do to debug your issue.

    There is a filter for changing it in the code, which affects the images.
    $GLOBALS['content_width'] = apply_filters( 'twentynineteen_content_width', 640 );

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Changing the content width’ is closed to new replies.