Archived topic
What's the best way to globally remove the .post class 2em margin?
4 replies · Started by Jack on January 31, 2019
I use Elementor and have noticed that when I create a singles template to apply to all blog posts, GP is adding a 2em margin both above and below (see here for code)
I thought I'd mention it first of all in case you'd like to take it into account! And also ask what the best way to remove it is?
Thanks in advance!
Jack
Amazing, I've just realised that you've already fixed it in this week's update :). Great feeling, good work guys.
Regards.
Jack
Hi there,
That CSS still exists, but it generally removed if it isn't needed.
In this case, the theme isn't aware that Elementor is using the .post class for their templates, so it's not being removed.
You can remove it with this CSS:
.elementor.post {
margin-bottom: 0;
}
Thanks Tom (Y). Elementor fixed this in their latest update I believe, also this last week.
Awesome! :)