The default WordPress theme Twenty Seventeen’s content width can be easily changed to full width. All you need is this bit of CSS.

Add the following CSS to your theme’s CSS file, or in Customizer’s Additional CSS:

.wrap {
	/* margin-left: auto; */
	/* margin-right: auto; */
	max-width: 100%;
	/* padding-left: 2em; */
	/* padding-right: 2em; */
@media screen and (min-width: 48em) {
	.wrap {
		max-width: 100%;
		/* padding-left: 3em; */
		/* padding-right: 3em; */
} #primary {
	/*margin-left: auto;*/
	/*margin-right: auto;*/
	max-width: 100%;

@media screen and (min-width: 30em) {
	.page-one-column .panel-content .wrap
		max-width: 100%;

You can adjust the 100% values. Set these to 90% for example for a 90% main content width.

19 thoughts on “How to make Twenty Seventeen theme full width in WordPress”

  1. Hi, your solution comes close to what I need, but not quite. I am trying to make my pages one-column. The Twenty Seventeen theme currently has pages set to two columns, which wastes a lot of the space I want to use. Is there a way to keep the current page width, but convert the 2-columns to 1? Thanks!

  2. Hi JanE, thank you very much for this piece of code, it has helped me a lot.
    Do you know how I can do so that only the width of the main page was modified?

  3. Hi,
    Thanks for sharing the useful information.

    I have tried the code but it doesn’t change the width for Blog and Category pages although it worked for the rest of pages.
    Can you please share the updated code?

  4. Hi Janr!
    This is a brilliantly easy solution for creating full width content pages in TwentySeventeen. I’ve chased this issue for two days and found several options that don’t work, or are too complex to implement.
    Thanks greatly,


  5. Yay! Problem solved in like two seconds! I wish I would have stumbled across this post hours ago, lol! I was resigned to changing out my theme altogether (clearly I’m new at this), which I feel like would have been a nightmare, starting nearly from scratch just to get rid of the excess negative space! Thanks a million!!

  6. Hello,

    very useful, thank you! It works very well for the content area 🙂

    But the menu-bar will remain “shrunk” in case it contains lots of items. Could someone please provide a rule to add to the ones above that will also “strech” the menu-bar to full width?

    Thank you so much guys and have a lovely day 🙂

  7. This is brilliant but doesn’t quite get me where I need to be due to images. Is there maybe a way to keep the two-column format but make use of the first column? In other words, right now, column one is for nothing but the page title and the first footer while column two takes up a ton of scroll space holding all the copy. Is it possible to make column one hold the featured image while column two holds the copy?

  8. Is there a way to do CSS change for a fill width, but not for the whole website, rather just 1 page?

Leave a Reply

Your email address will not be published. Required fields are marked *