Tagged: blog sidebar, Portfolio + sidebar
-
AuthorPosts
-
January 15, 2016 at 10:31 pm #566336
Hi, I would like to display the blog sidebar on all blog posts, but hide it on all portfolio posts.
Could you let me know how to do this?
Many thanks!
PaulJanuary 16, 2016 at 2:53 am #566372Hey goorbital!
You can select to use a sidebar or no sidebar whenever you edit the post. It’s in the “Layout Settings” on the right hand side.
Regards,
ElliottJanuary 16, 2016 at 8:56 am #566498Hi Elliot, I currently have 50+ portfolio items. Is there an easier way to hide the sidebar on all of them through CSS or the functions file?
January 17, 2016 at 5:29 am #566720Hi,
I’m not sure but send us a link to the site in question and we’ll have a closer look, I think your safest bet would be to do it manually though.
Best regards,
RikardJanuary 19, 2016 at 6:51 pm #568041Hi Rikard, would it be possible to remove the sidebar from one of the theme’s portfolio file code? I tried commenting out the sidebar in the single-portfolio.php page, but it had no effect.
Thanks,
PaulJanuary 19, 2016 at 10:14 pm #568172Hi!
I loaded your portfolio item and I can not locate any sidebar been around.
Have you managed to remove it?Best regards,
BasilisJanuary 19, 2016 at 10:35 pm #568191Hi Basilis,
I was not able to remove the sidebar.January 20, 2016 at 8:27 am #568428Hi,
You could hide it with CSS but then you would have to find all the page ID’s for the pages and that would probably take more time than actually editing the sidebar setting, if I was in your position I would edit the posts instead of using CSS.
Regards,
RikardSeptember 14, 2018 at 4:56 pm #1009910This did the job for me. First bit of code to hide on single portfolio by targeting body.single-portfolio. 2nd bit to adjust the main area to be full width rather than 73%. And also remove right border.
body.single-portfolio .sidebar {
display: none !important;
}body.single-portfolio .container .av-content-small.units {
width: 100% !important;
border-right: none !important;
}September 15, 2018 at 9:11 am #1010031 -
AuthorPosts
- You must be logged in to reply to this topic.
