[Resolved] Add social icons in Entry Meta

Home Forums Support [Resolved] Add social icons in Entry Meta

Home Forums Support Add social icons in Entry Meta

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1266615
    Diogenes

    Hi.

    It is possible to add the social icons of the author of the post under the Entry Meta.

    It could be something like what they put in this article: https://docs.generatepress.com/article/entry-meta-style/, with the author’s social icons below the publication date (like example 2)

    [img]http://imgfz.com/i/KOmvPwY.png[/img]

    The social icons could be taken from the social networks that are added in the wordpress user profile.

    Maybe I ask a lot, but it would be great if you could help me.

    Thanks in advance.

    #1266881
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    Have you already added the social icon fields to the user profile?

    If so, you would print the necessary HTML/links from the user profile in the function below the echo $date; line.

    So you’d get the user meta: https://developer.wordpress.org/reference/functions/get_user_meta/

    And use it in the HTML: “>SVG ICON HTML`

    #1267674
    Diogenes

    Thanks tom.

    This will serve as my guide.

    Any questions I ask you.

    Regards.

    #1267736
    Tom
    Lead Developer
    Lead Developer

    Sounds good 🙂

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