# Full Width Home Image & Full Width Sections/

**URL:** <https://discourse.roots.io/t/full-width-home-image-full-width-sections/485>\
**Category:** uncategorized\
**Created:** [October 11, 2013, 4:12pm UTC](https://discourse.roots.io/t/full-width-home-image-full-width-sections/485 "2013-10-11T16:12:30Z")\
**Posts on this page:** 1\
**Showing post:** 16

<div class="post-metadata">

**Author:** ![nboliver](https://discourse.roots.io/user_avatar/discourse.roots.io/nboliver/32/6796_2.png) [@nboliver](https://discourse.roots.io/u/nboliver)\
**Post date:** [June 12, 2014, 5:28pm UTC](https://discourse.roots.io/t/full-width-home-image-full-width-sections/485/16 "2014-06-12T17:28:41Z")

</div>

One simple way you can use to achieve full width sections on non-sidebar pages is to remove the “.container” and “.wrap” classes from the “.wrap” div and its child. Then do something like this immediately after:

```
<?php if(roots_display_sidebar()) : ?>
    <div class="container">
        <div class="row">
<?php endif; ?>

```

Then you need to close those divs immediately after the sidebar, inside the sidebar conditional.

So the final product would be like this:

```
<div class="wrap" role="document">
		<div class="content">
			<?php if(roots_display_sidebar()) : ?>
			<div class="container">
				<div class="row">
			<?php endif; ?>
					<main class="main <?php echo roots_main_class(); ?>" role="main">
						<?php include roots_template_path(); ?>
					</main><!-- /.main -->
					<?php if (roots_display_sidebar()) : ?>
					<aside class="sidebar <?php echo roots_sidebar_class(); ?>" role="complementary">
						<?php include roots_sidebar_path(); ?>
					</aside><!-- /.sidebar -->
				</div><!-- /.row -->
			</div><!-- /.container -->
					<?php endif; ?>
		</div><!-- /.content -->
	</div><!-- /.wrap -->

```

Hope that helps someone, as it took me a while to figure out how to do this without repeating myself.

---

_[View the full topic](https://discourse.roots.io/t/full-width-home-image-full-width-sections/485)._
