Remove primary sidebar from individual post
-
I am using The Morning After theme.
I would like to make it less busy by removing the primary sidebar on all places, except the front page. I have now made that happen for category pages and for individual pages, but I do not know the code to make it happen for individual posts, for example here:
https://riaborkentdotnl.wordpress.com/2016/03/23/jongbloed/
I would like to remove the primary sidebar there. (And from any other individual post, but not from the front page).
Thank you in advance.
The blog I need help with is: (visible only to logged in users)
-
For single post pages, you can do the following. I’ve used what you have already done as a guide.
.single .primary-sidebar { display: none; } .single .primary-content { margin-left: auto; margin-right: auto; float: none; width: 95%; } -
Yes, works perfectly, thanks! Have changed 95% back to 80% to create a but more space around the edges.
-
- The topic ‘Remove primary sidebar from individual post’ is closed to new replies.