Hide unwanted elements with CSS
Written 35 weeks 5 days ago by SharmWeb. Last edit 35 weeks 5 days ago.
where one represents the actual identifier of the element we want to hide (in this case a feedflare), preceeded by the class of the teaser, because we don't want to hide it on the full node view.
Published in
- Printer-friendly version
- 55 reads
Problem
A module might add elements you don't desire. Instead of hacking, it's easier and cleaner to hide these with some CSS. Use the "Inspect element" or similar from your browser developer extension to see how the class or identifier of your element is named. You can fine grain even more by preceeding it with another CSS wrapper. In the example below you see.teaser p.feedburnerFlareBlock { display: none; }where one represents the actual identifier of the element we want to hide (in this case a feedflare), preceeded by the class of the teaser, because we don't want to hide it on the full node view.



