We're merging with GenerateBlocks! Learn more here.

[Resolved] Padding/margin between experpt and social icon

Please login to receive premium support.

Support for the free plugin can be found here.

Home Forums Pro Support Padding/margin between experpt and social icon

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #34799
    Martin
    Participant

    Hi,

    I use this nice WP show posts posts overview. However there is a pretty large margin between the end of the excerpt paragraph and the social icon. Is there a way to reduce this?

    Here is the URL: https://thweis.com/educational-trading-blog/

    #34811
    elvin
    Moderator

    Hi Martin,

    Your site has this CSS being added through Autoptimize’s Critical CSS

    p {
        margin-bottom: 2em;
    }

    It’s adding 2em spacing between the excerpt and the icon.

    You can override this CSS with this one:

    .wp-show-posts-entry-summary p {
        margin-bottom: 0;
    }

    But you may want to consider removing the 2em CSS if it’s not being used anywhere else.

    #34818
    Martin
    Participant

    Hi,

    awesome thank you. I recently added the 2em but only for p+h2 to have margin above the h2 headers inside posts.
    So I don’t know where this 2m for p is coming from. But your css solved it.

    Can be closed!
    best regards

    #34875
    elvin
    Moderator

    Nice one. Glad you got it sorted. No problem. 😀

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