Hiding Widget Areas on Rosalie
-
Hi, I am using Rosalie and hoping there is a way to hide the side widget area while viewing posts. To be more specific, when you view a post in the side bar area on the right a bunch of widgets show up (they are on the main page as well). I like them on the main page but on the post pages I would like to just see the post spanning the entire page. Is there a way to accomplish this? I am a complete CSS noob…
The blog I need help with is: (visible only to logged in users)
-
Hi @tandemtrekking,
Yes, there is. Just copy and paste this css code:
.single #secondary{ display: none; } //code below to center the post area .single #primary{ float: none; margin-left: auto; margin-right: auto; }If you want to do the same for page like https://tandemtrekking.com/patreon/ just add and change .single into .page
.page #secondary{ display: none; } //code below to center the post area .page #primary{ float: none; margin-left: auto; margin-right: auto; } -
-
-
One small thing – I just noticed that the code comments above aren’t in CSS format. If you want to include the comments in your CSS editor you’ll need to use this format, otherwise the rest of the code won’t work properly.
/* code below to center the post area */ -
Ah, you are right! I’m sorry. I forgot that unlike SCSS, CSS doesn’t allow comment with “//”.
-
- The topic ‘Hiding Widget Areas on Rosalie’ is closed to new replies.