How to Achieve a Full-Width Layout in Twenty Fourteen
Content
Many users of the Twenty Fourteen theme report a common challenge: they want their site's content to span the full width of the browser window. The default layout includes margins and sidebars, which can leave unused space on the sides. This guide will explain why this happens and provide the most effective solutions to create a true full-width design.
Why Isn't My Twenty Fourteen Site Full Width?
The Twenty Fourteen theme was designed with a fixed maximum width for its main content container and structural elements. This is not a bug but an intentional design choice to maintain readability and a consistent structure across different screen sizes. Common user goals include:
- Making the main content area wider.
- Extending the header image to the full screen width.
- Creating a full-width footer.
- Ensuring WooCommerce pages or other plugin pages use the full width.
- Fixing a 'ghost' sidebar that appears on wider screens.
Common Solutions for a Full-Width Layout
1. Using a Child Theme and Custom CSS
The safest and most recommended method is to use a child theme. This ensures your changes are not overwritten by theme updates. Add the following CSS to your child theme's style.css file or through the Customizer's "Additional CSS" section.
Make the Entire Site Container Full Width:
#page {
max-width: none;
}
#masthead {
max-width: none;
}
.site {
max-width: 100%;
}
Widen the Main Content Area:
.site-content .entry-header,
.site-content .entry-content,
.site-content .entry-summary,
.site-content .entry-meta,
.page-content {
max-width: 100%; /* Change from the default 474px */
margin: 0 auto;
}
Fix for Full-Width Featured Images:
.wp-post-image, .post-thumbnail img {
width: 100%;
}
Remove Sidebar Margin for Full-Width Page Template:
.full-width .site-content blockquote.alignleft,
.full-width .site-content img.size-full.alignleft,
.full-width .site-content .wp-caption.alignleft {
margin-left: 0; /* Change from the default -168px */
}
2. Addressing the 'Ghost' Sidebar on Wider Screens
When using a full-width page template, a blank sidebar space might appear on larger screens. To hide it completely, use this CSS:
@media screen and (min-width: 1000px) {
.full-width .content-area {
width: 100%;
}
}
3. Troubleshooting WooCommerce and Other Plugin Pages
Pages generated by plugins like WooCommerce may have their own styling. To target them specifically, you may need more specific CSS selectors. For example, to target WooCommerce product tag pages, you might need to use a browser inspector to find the correct body class and apply full-width styles to it.
Important Considerations
- Responsiveness: Widening elements can sometimes break the theme's responsive design on mobile devices. Always test your changes on different screen sizes.
- Image Quality: Stretching images to full width will work best if the original images are large enough to avoid looking pixelated.
- Browser Tools: Using a browser tool like Firefox's Firebug or Chrome's Developer Tools is invaluable for testing CSS changes in real-time before adding them to your site.
By following these steps, you can successfully modify your Twenty Fourteen theme to achieve the full-width layout you desire while maintaining the stability of your site.
Related Support Threads Support
-
twenty fourteen content sidebar not appearing full heighthttps://wordpress.org/support/topic/twenty-fourteen-content-sidebar-not-appearing-full-height/
-
width pagehttps://wordpress.org/support/topic/width-page-1/
-
Make more space for content (width)https://wordpress.org/support/topic/make-more-space-for-content-width/
-
full width content area.https://wordpress.org/support/topic/full-width-content-area/
-
Theme Page Width too smallhttps://wordpress.org/support/topic/theme-page-width-too-small/
-
Cannot Fit Wide Screenhttps://wordpress.org/support/topic/cannot-fit-wide-screen/
-
After WordPress 5.3 upgrade, my site doesn’t display in full-widthhttps://wordpress.org/support/topic/after-wordpress-5-3-upgrade-my-site-doesnt-display-in-full-width/
-
How to set page width in pixels or percent?https://wordpress.org/support/topic/how-to-set-page-width-in-pixels-or-percent/
-
Make woocommerce pages full widthhttps://wordpress.org/support/topic/make-woocommerce-pages-full-width/
-
WooCommerce Variable Producthttps://wordpress.org/support/topic/woocommerce-variable-product-4/
-
Extend the width of a single pagehttps://wordpress.org/support/topic/extend-the-width-of-a-single-page/
-
Woocommerce store cataloguehttps://wordpress.org/support/topic/woocommerce-store-catalogue/
-
Full width for woocommerce page onlyhttps://wordpress.org/support/topic/full-width-for-woocommerce-page-only/
-
Widen the Sidebarhttps://wordpress.org/support/topic/widen-the-sidebar/
-
blockquote wider than content area to the righthttps://wordpress.org/support/topic/blockquote-wider-than-content-area-to-the-right/
-
Help Making Full Screen Width Twenty Fourteenhttps://wordpress.org/support/topic/help-making-full-screen-width-twenty-fourteen/
-
Full Width for bbpress forums root pagehttps://wordpress.org/support/topic/full-width-for-bbpress-forum-listing-page/
-
Twenty Fourteen Overall Site max-widthhttps://wordpress.org/support/topic/twenty-fourteen-overall-site-max-width/
-
Issue with content not expanding – even with ‘full width’ selectedhttps://wordpress.org/support/topic/issue-with-content-not-expanding-even-with-full-width-selected/
-
Need widest-possible content areahttps://wordpress.org/support/topic/need-widest-possible-content-area/
-
Page widthhttps://wordpress.org/support/topic/page-width-48/
-
Making 1 page full widthhttps://wordpress.org/support/topic/making-1-page-full-width/
-
Sidebar ghost on full width page.https://wordpress.org/support/topic/sidebar-ghost-on-full-width-page/
-
Homepage Post Full Width?https://wordpress.org/support/topic/homepage-post-full-width/
-
Full Width Page ?https://wordpress.org/support/topic/full-width-page-12/
-
Change Width of Sticky Postshttps://wordpress.org/support/topic/change-width-of-sticky-posts/
-
Twent Fourteen Page Widthhttps://wordpress.org/support/topic/twent-fourteen-page-width/
-
How do I make images full-width? My Theme is Twenty Fourteen.https://wordpress.org/support/topic/how-do-i-make-images-full-width-my-theme-is-twenty-fourteen/
-
Twenty Fourteen editor widthhttps://wordpress.org/support/topic/twenty-fourteen-editor-width/
-
Update the theme with full width codehttps://wordpress.org/support/topic/update-the-theme-with-full-width-code/
-
Full Width Page Template shifted to the lefthttps://wordpress.org/support/topic/full-width-page-template-shifted-to-the-left/
-
Twenty Fourteen if full width how can i use up space where sidebars werehttps://wordpress.org/support/topic/twenty-fourteen-if-full-width-how-can-i-use-up-space-where-sidebars-were/
-
Full widthhttps://wordpress.org/support/topic/full-width-105/
-
How do I increase the width of content in a single page (twenty fourteen)?https://wordpress.org/support/topic/how-do-i-increase-the-width-of-content-in-a-single-page-twenty-fourteen/
-
Wide screen vs laptop screen viewshttps://wordpress.org/support/topic/wide-screen-vs-laptop-screen-views/
-
Full Width Template not working with Buddypresshttps://wordpress.org/support/topic/full-width-template-not-working-with-buddypress/
-
Change page template layouthttps://wordpress.org/support/topic/change-page-template-layout/
-
full width for featured image?https://wordpress.org/support/topic/full-width-for-featured-image/
-
Trouble changing the width of the content areahttps://wordpress.org/support/topic/trouble-changing-the-width-of-the-content-area/
-
Why does my WordPress Editor Only Use Half the Box?https://wordpress.org/support/topic/why-does-my-wordpress-editor-only-use-half-the-box/
-
Full page width with woocommerce and twenty fourteen themehttps://wordpress.org/support/topic/full-page-width-with-woocommerce-and-twenty-fourteen-theme/
-
create differently colored footer areas in full screen widthhttps://wordpress.org/support/topic/create-differently-colored-footer-areas-in-full-screen-width/
-
Full widthhttps://wordpress.org/support/topic/full-width-75/
-
how to set the width of the center to a higher level?https://wordpress.org/support/topic/how-to-set-the-width-of-the-center-to-a-higher-level/
-
Remove left sidebar to have full width in specific pageshttps://wordpress.org/support/topic/remove-left-sidebar-to-have-full-width-in-specific-pages/
-
Full Width Header Menu Bar & Footerhttps://wordpress.org/support/topic/full-width-header-menu-bar-footer/
-
Enlarge column text central areahttps://wordpress.org/support/topic/enlarge-column-text-central-area/
-
Making the page full width – from edge to edge?https://wordpress.org/support/topic/making-the-page-full-width-from-edge-to-edge/
-
Making a table "break out" of the text column to span the whole pagehttps://wordpress.org/support/topic/making-a-table-break-out-of-the-text-column-to-span-the-whole-page/
-
larger content area in standard template of twentyfourteenhttps://wordpress.org/support/topic/larger-content-area-in-standard-template-of-twentyfourteen/
-
How to Make Woocommerce Product Tags Page Full Width?https://wordpress.org/support/topic/how-to-make-woocommerce-product-tags-page-full-width/
-
styling only for specific page templatehttps://wordpress.org/support/topic/styling-only-for-specific-page-template/
-
full widthhttps://wordpress.org/support/topic/full-width-82/
-
Twenty Fourteen Full Width Page Template not workinghttps://wordpress.org/support/topic/twenty-fourteen-full-width-page-template-not-working-1/