Turn Off Sidebar

Posted in: Newspaper
Post count: 12

Hello,

How do I turn off sidebar for smart list only?

Thanks,
Moazam

Post count: 22421

Hello,
Unfortunately you cannot hide the sidebar based on smartlists but you can hide it based on post id’s. Every post has a unique id you can see with your browser inspector: http://screencast.com/t/LOWjAktF
Fopr example the post id from the above screenshot is 1385 so i would use css to hide the sidebar on that particular post like so:

.postid-1385 .td-main-sidebar{
display:none!important;
}

You can use this code to apply it to your particular posts you want to use smartlists on. Simply copy and paste the code then change the id. (you can get the id from the back-end as well: http://screencast.com/t/gYFV7SoYF)
Thanks.

Post count: 12

Hi Bogdan,

Thanks for the reply and proposing a solution.

I think this solution is not good because every smart post will require a CSS change. I am thinking to use custom fields.

I am currently using child theme. Do you know which file I have to edit if I have to remove sidebar entirely?

I understand this question does not cover your support policy. So, it’s fine for me if you can’t answer this question.

Thanks,
Moazam

Post count: 22421

Hello,
You can remove the sidebar from the post when you create it: http://screencast.com/t/iRWyTjnjPCw
You can alternatively delete it from the code. For smartlists we reccoment post style 5 as this post template does not show featured image. You can edit this file: http://screencast.com/t/GsjkyPXkbe and comment out or delete the highlighted code. this will remove the sidebar entirely from the whole website.
Thank you!

Viewing 4 posts - 1 through 4 (of 4 total)
The forum ‘Newspaper’ is closed to new topics and replies.