[Resolved] Author photo in Blogpost

Home Forums Support [Resolved] Author photo in Blogpost

Home Forums Support Author photo in Blogpost

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #1097674
    _blank

    hi!
    i tried – https://docs.generatepress.com/article/entry-meta-style/ to add author image in post meta and i am able to see the author image in blogs page but i also want it to appear in the individual blog post.
    as of now only the title , author name and date is visible in it but i want to show author image also.

    #1097849
    _blank

    voo!! i just came around this post- https://docs.generatepress.com/article/page-hero-examples/#example-2
    And now i am able to see the image it worked perfectly!

    Now i just want to customize the author image a little bit-
    i want to add a small pink color boarder around the author image like how it is done here: https://www.searchenginejournal.com/seo-101/how-people-search/

    #1097864
    David
    Staff
    Customer Support

    Hi there,

    edit this CSS and include the border property i have added:

    .page-hero-gravatar img {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        position: relative;
        vertical-align: middle;
        margin: 0 10px 0 0;
        border: 4px solid pink; /* Add this line */
    }
    #1098206
    _blank

    Hi!
    thank you so much! but i want the color to be #fc0562 so can you pls change the code?

    #1098506
    David
    Staff
    Customer Support

    Change this line:

    border: 4px solid pink;

    to:

    border: 4px solid #fc0562;

    #1098731
    _blank

    I am getting a warning in css “using width with border can sometimes make element larger then you expect”
    and
    “using hight with border can sometimes make element larger then you expect”

    #1098738
    David
    Staff
    Customer Support

    You can safely ignore those warnings.

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