Site logo

Archived topic

Social Media Icons Author Box

10 replies · Started by Kevin on April 29, 2021

Viewing posts 1–11 of 11

Hey, the new GPP Version is awesome :-D

Now I've created a custom author box for each author at the bottom of the article. Actually it would be great to add website data and social media icons for their custom social media accounts. Any idea how I do this best?

Thank you

Now I’ve created a custom author box for each author at the bottom of the article. Actually it would be great to add website data and social media icons for their custom social media accounts. Any idea how I do this best?

You'll need to create custom fields that will hold values for author's website data and social media links.

You can then fetch this values the GB Headline Block's dynamic value > Author meta.

Or you can create a shortcode for each of them and place it on your content template using the shortcode block.

Hey Elvin

this works great, but when i just want add some social media icons with the button block, it doesn`t work. Any Idea?

Best Kevin

I dont see any social media button. When i use the same meta data with the headline block i see the url as text but not with the button block for just a twitter icon or others

Sorry, I should've explained further.

ACF will only fetch the link values but won't attach it as an href to an icon's <a> tag.

You'll have to use GenerateBlock's Button block and use "dynamic link type" instead of "dynamic text type" as shown here:
https://share.getcloudapp.com/8Lubl49E

cool thank you. Whats the best solution for e-mail? ACF with Mail doesn`t work.

okey i fix it: Text and then mailto:

Thank you

Glad you figured the rest out. No problem. :)

This archived topic is closed to new replies.