Archived topic
Social Media Icons Author Box
10 replies · Started by Kevin on April 29, 2021
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
but when i just want add some social media icons with the button block, it doesn`t work.
What exactly doesn't work?
Can you check the documentation first?
https://docs.generateblocks.com/article/buttons-overview/#icon
This video might help as well:
https://youtu.be/HMhUo91RjsE
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
Hmm haven't heard that issue before.
Are you sure you don't see this?
https://www.screencast.com/t/JIiIPbFJ4r
This is how it looks
https://www.screencast.com/t/fqN7fq8D
Same meta but with headline block
https://www.screencast.com/t/qMZcgZvQ are working
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. :)