[Resolved] What's the best way to globally remove the .post class 2em margin?

Home Forums Support [Resolved] What's the best way to globally remove the .post class 2em margin?

Home Forums Support What's the best way to globally remove the .post class 2em margin?

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #797327
    Jack

    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)

    See example here and here

    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

    #797331
    Jack

    Amazing, I’ve just realised that you’ve already fixed it in this week’s update :). Great feeling, good work guys.

    Regards.

    Jack

    #797754
    Tom
    Lead Developer
    Lead Developer

    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;
    }
    #797768
    Jack

    Thanks Tom (Y). Elementor fixed this in their latest update I believe, also this last week.

    #797772
    Tom
    Lead Developer
    Lead Developer

    Awesome! 🙂

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.