Jump to content

Multiple blogs: how to hide the sidebar for one blog only

Go to solution Solved by tuanphan,

Recommended Posts

Site URL: https://dachshund-dory-ba76.squarespace.com

I'm building a site which uses three different blogs for various purposes. We use the sidebar in two of those but not on the third. What custom CSS can I use to hide the sidebar on the individual posts for a single blog.

An example post is here: https://dachshund-dory-ba76.squarespace.com/offerings-details/leading-purposeful-conversations

Password for the website is 'kyoto2019'

Link to comment
  • Solution

Add to Page Settings > Advanced > Header

<style>
  aside#rightSidebar {
    display: none;
}
  .collection-type-blog #content {
    width: 100%;
}
</style>

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment

Thanks @tuanphan. That works nicely. Note to self (and others who may run into this issue): the code injection needs to be made to the blog settings (on the blog page), not to a summary page. To explain, for this blog we display a page with a summary block rather than the blog page itself. Originally I added the code to the former, where (of course) it made no difference.

Edited by davidbrewster
Link to comment
  • 4 months later...
13 hours ago, geoffwilsonhcd said:

@tuanphan, I'm now creating a second blog on my site too using the Avenue template, but tried to put this code into the Blog Settings > Advanced > Page Header Code Injection as you specified, but still seeing the sidebar on this new blog.  Any suggestions? 

Screenshot 2021-01-01 222142.png

Hi. Can you share link to a blog? We can help easier

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.