---
title: "Hide the Default Sidebar"
canonical: "https://kb.uconn.edu/space/IKB/26017988938/Hide%20the%20Default%20Sidebar"
format: markdown
---
The default sidebar shows up on all of your website's **posts**, **archive pages**, **search results pages**, and pages with the **Blog template**. If you want to hide the sidebar from any or all of these types of pages, insert the following code into your [Custom CSS](https://uconn.atlassian.net/wiki/spaces/IKB/pages/10814456015):

### Posts

```
.single-post #page-sidebar {
display:none
}

.single-post #page-single>.row>.col-md-9 {
width:100%
}
```

### Search Results

```
#page-search #page-sidebar {
display:none
}

#page-search>.row>.col-md-9 {
width:100%
}
```

### Archives

```
#page-archive #page-sidebar {
display:none
}

#page-archive>.row>.col-sm-9 {
width:100%
}
```

### Blog Pages

```
#page-blog #page-sidebar {
display:none
}

#page-blog>.row>.col-sm-9 {
width:100%
}
```

### All Relevant Pages

```
.single-post #page-sidebar, #page-archive #page-sidebar, #page-search #page-sidebar, #page-blog #page-sidebar {
display:none
}

.single-post #page-single>.row>.col-md-9, #page-archive>.row>.col-sm-9, #page-search>.row>.col-md-9, #page-blog>.row>.col-sm-9 {
width:100%
}
```