Skip to content

Instantly share code, notes, and snippets.

@zgordon
Last active February 12, 2018 09:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zgordon/9a2cec72895c06735f0dbc3dbbcd96e5 to your computer and use it in GitHub Desktop.
Save zgordon/9a2cec72895c06735f0dbc3dbbcd96e5 to your computer and use it in GitHub Desktop.
This example shows how you can convert all two column styles to 100% width single column styles.
.site-content .wrap,
.has-sidebar:not(.error404) #primary,
.has-sidebar #secondary,
body:not(.has-sidebar):not(.page-one-column) .page-header,
body.has-sidebar.error404 #primary .page-header,
body.page-two-column:not(.archive) #primary .entry-header,
body.page-two-column.archive:not(.has-sidebar) #primary .page-header,
.blog:not(.has-sidebar) #primary article,
.archive:not(.page-one-column):not(.has-sidebar) #primary article,
.search:not(.has-sidebar) #primary article,
.error404:not(.has-sidebar) #primary .page-content,
.error404.has-sidebar #primary .page-content,
body.page-two-column:not(.archive) #primary .entry-content,
body.page-two-column #comments {
max-width: 100%;
width: 100%;
float: none;
padding-left: 0;
padding-right: 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment