You want to add authors’ social media links to their posts or the author page template. There are ways to do that and in this tutorial, I explain one of them.
Table of Contents
Add Authors’ Social Media via User Profile
From the WordPress Admin Dashboard, navigate to Users > All Users and click on the Edit link of the author to whom you want to add social media links.
Then, scroll down until you reach Biographical Info.
You should add the below combination of text and HTML codes (after editing) to the text area.
I provide demo contents to test WordPress themes. I try to cover every aspect of themes so end users utilize themes without any worry. Find me on <a href="https://twitter.com/alvand1399" rel="nofollow">Twitter</a> and <a href="https://www.facebook.com/alvand1399" rel="nofollow">Facebook</a>.
Instead of “I provide demo contents to test WordPress themes. I try to cover every aspect of themes so end users utilize themes without any worry.
“, add the author’s biography text.
In the code part, instead of “alvand1399“, add the author’s Twitter and Facebook usernames respectively. If you follow the code template, you can also add other socials.
Include Added Authors’ Social Media in Your Theme
Now, you should include added social media to your theme. In this example, I have a default twenty twenty-two child theme activated. Note that the twenty-twenty-two is a block theme. As always, using a child theme to make changes to your theme is recommended. If you do not have a child theme, consider reading this article: How to Create a WordPress Child Theme Easily
After all, from the WordPress Admin Dashboard, navigate to the Appearance menu and click on Editor.
I decided to add the author’s biographical info to the Single template. It will add it to every post that the author publishes on my website.
From the Editor, click on Templates and then on Single.
Then I add a Group block. Inside it, add a Stack block. Add a Paragraph block “About the Author” and a Post Author Biography block inside the Stack. I also add a background color to the Stack block. It is a simple example; you can add an author avatar, name, etc via blocks.
You can see the result in a blog post below:
Conclusion
This was just one way to do this task and I used it through a block theme. You can use a plugin like Simple Author Box that has advanced features. After reading this article, you may want to read How to Change the 404 Page Title in WordPress.
Leave a Reply