• Resolved gerardval

    (@gerardval)


    Hello,

    In single post, I want to display my gravatar picture instead of the “little grey man”, just below the post title.
    How can I do ?

    Is it possible to display the author’s picture on blog archive too ?

    Thanks for replying,

    Gérard

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello @gerardval,

    The solution to achieve it is customization(for both, gravatar for the single post instead of the icon and in the archive page), and it needs familiarity with PHP, if you are unfamiliar with PHP, you can contact a PHP expert.

    To do this, first, you need to use the child theme. You can copy the metafile from the partials folder in the child theme following the same path and then make the necessary changes.

    For more information about that, please follow the steps below:

    By using FTP or cPanel access (if didn’t use the localhost), Go to this directory:
    wp-content\themes\oceanwp\partials
    Find your template which you want to customize and copy that template file(in your case, for example, you need to change the date on the blog page, so you need to use the blog template(s): https://i.postimg.cc/brv9gn9s/image.png).

    Then head over to the same path on the child theme. There isn’t an entry folder as a default on your child theme, so you need to create a new one(one time).

    Example: If you want to change the HTML tags structure in the single blog post featured image for standard post format, all you need in this step is the following:

    1. Head over to your WP root > wp-content > themes > oceanwp > partials> single > media path.
    2. Then, find the “blog-single.php” file and copy this file.
    3. After that, go back to the themes folder (wp root > wp-content > themes) and go to the oceanwp-child-theme-master folder.
    4. Create a new folder with the “partials” name in the child theme.
    5. Go to the /partials/ folder and create a new folder with the “single” name.
    6. Go to the /single/ folder and create a new folder with the “media” name.
    7. Go to the /media/ folder and paste the “blog-single.php” file here.

    * Please check this screenshot: https://i.postimg.cc/sxjYTWyt/image.png.
    * Download child theme: https://docs.oceanwp.org/article/90-sample-child-theme.
    * Developer docs: https://docs.oceanwp.org/collection/19-developer-doc.

    Best Regards

    Thread Starter gerardval

    (@gerardval)

    Perfect, thank you !

    • This reply was modified 1 year, 12 months ago by gerardval.

    You’re most welcome, and I’m glad we could help.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Author avatar in single and archive post (blog)’ is closed to new replies.