Removing the sidebar and extra information
-
Hi
Would love some help with custom CSS to remove the sidebar (left and right when opening one of the blogposts) on the Gazette theme.
I would like to remove the information like ‘date’, ‘tags’, etc.
Thanks so much!
The blog I need help with is http://www.makeupforwomen. be
The blog I need help with is makeupforwomen.be.
The blog I need help with is: (visible only to logged in users)
-
Hello!
Removing the meta sidebar from only the blog posts is a little bit tricky. I’ve come up with some code that might do the job, though. Try adding this to your themes CSS and let me know how it goes!
.posted-on { display: none; } .byline { display: none; } .tags-links { display: none; } .home .posted-on { display: inherit; }“.posted-on” will hide the date, “.byline” will hide author line, “.tag-links” will hide the tags, and “.home .posted-on” will keep the date displaying on articles seen from the homepage of your blog. If you want to stop hiding any of these things, just remove that section of code. :)
Hope this helps! Let me know if you have any questions.
-
Hi!
Thanks for the effort but nothing seems to change.
I tried adding this code on top of the existing CSS and tried to post it below the existing CSS (don’t know if that even matters) but nothing changed…
-
Hi there, we can use the parent div CSS and remove it all with one rule.
.entry-footer { display: none; }Looking at the existing CSS, @wweadam, yours would work if you preceded the selectors you have for posted on, byline and tags with .entry-footer. The original CSS has that preceding the selectors in the associated rules, so it the original is more specific than what you have, which is why it isn’t hiding things on the single post pages.
-
Ah, oops. I added in that code in using style-bot and it worked there. I suppose I should’ve checked with the original CSS to get the correct code.
-
- The topic ‘Removing the sidebar and extra information’ is closed to new replies.