• Resolved misiekmi

    (@misiekmi)


    Hi,
    I want to add author to post, but with gravatar hovercard.
    And I have a problem with margins, this is screenshot. I have post in page extension. Please help me.

Viewing 8 replies - 1 through 8 (of 8 total)
  • sacredpath

    (@sacredpath)

    Automattic Happiness Engineer

    Without being able to look at your site on the margins issue, I can only guess, but have you by chance changed any widths in the CSS?

    I’m working on the hovercard thing for you and hope to have an answer very soon.

    Thread Starter misiekmi

    (@misiekmi)

    Maybe, I don`t remember.This is my style.css and rtl.css

    sacredpath

    (@sacredpath)

    Automattic Happiness Engineer

    I don’t see anything that looks like it would cause an issue with the content width, at least in the CSS you provided. Is it only happening on pages where you are using the shortcode with the Post in Page plugin?

    sacredpath

    (@sacredpath)

    Automattic Happiness Engineer

    If you have Jetpack installed and have Hovercards activated (Settings > Discussion) you should be able to use get_avatar to have a gravatar and hovercard for your authors. See here: https://codex.www.ads-software.com/Function_Reference/get_avatar . There is actually an example for putting it for post author.

    Thread Starter misiekmi

    (@misiekmi)

    Yes, it is only on these pages. Gravatar I just added. Thank you and I hope you help me in margins issue too. ??

    sacredpath

    (@sacredpath)

    Automattic Happiness Engineer

    Great on the Gravatars!

    On the margins issue, it is a problem with the Posts in Page plugin CSS. It is the wide left padding that is causing the issue. You can add the following CSS to fix it which adjusts the width of the content and left padding when using the shortcode.

    .ivycat-post .entry-summary, .ivycat-post .entry-content {
        padding-left: 44px;
        width: 424px;
    }

    Thread Starter misiekmi

    (@misiekmi)

    Thank you very much. Now everything is ok.

    sacredpath

    (@sacredpath)

    Automattic Happiness Engineer

    You are welcome.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Dusk to Dawn – adding author (Gravatar) and problem with margin’ is closed to new replies.