Full width home advertisement

Building Online Business

Post Page Advertisement [Top]

Adding an Author Image and Bio Box in Wordpress and Linking to A Google Plus Profile

Wordpress and Linking to A Google Plus Profile 2018

Adding an Author Image and Bio Box in Wordpress and Linking to A Google Plus Profile Attaching bio boxes and images to WordPress blog posts will help readers identify and secure trust with writers. BioBox can also be used for many other purposes. For standard article marketing and guest blog posting, authors / bioboxes can help SEO when links are included. Of course, if there is a call for action or sufficient interest, the reader can follow the link and become a new subscriber (or customer) on the author's website or blog. This tutorial describes how to attach the author's BioBox to a post on your site and link to Google+ even if the theme is not natively supported.

 Wordpress and Linking to A Google Plus Profile

First, additional information on BioBox

BioBox can be associated with the author's social profile on the Internet. Standard profiles are Twitter, Facebook (page and / or profile), Google+ (page and / or profile), and LinkedIn. If you link to an article's Google+ profile and use the appropriate relationship or "rel" attribute in the link, Google will be able to track all the artist's content on the web. This allows you to set your Google authors ranking or Google authors. Wordpress and Linking to A Google Plus Profile To establish a link between an author's G + profile and an article, the value of the rel attribute must be "Author". When this link is made, your G + profile photo will appear next to your results when the article appears in SERPS (Google Search results), giving you a higher click-through rate and reliability. It also provides links to other content from the same author on the web. Author relationships can be set up in several different ways. At the end of the linked Google+ profile URL? The rel = author or rel = author can be included in the anchor tag. Another way is to use the link element between the HTML header tags. Displaying a profile box in WordPress usually requires some effort from the webmaster in all cases. Topics used on WordPress sites will include author bio boxes below the posts. Sometimes it will be on the post, on the sidebar, or at some other point. However, if the topic is not visible (there may be an option to turn on or turn off theme switching options), there is an order to use plug-ins or to create custom functions. You can then use custom functions to write your own custom plug-ins, but this article will show you how to add user-defined functions to your theme's function file. All biometric information comes from a given user's profile. Some plugins and themes add usable values, but in most cases also display the biobox. The WordPress Codex contains a list of all possible values for the default installation of WordPress, which can be used in a customized BioBox. In the example I will present today, I will include the name and description.

What is Gravatar and where is it used?

Gravatar stands for world-recognized avatar. WordPress has built-in support. By default, you can use the same avatar on a supported website. It can be used for comment making and production. Simply setting up an account at Gravatar.com and uploading an image is all you need. Now, if you write your comments on a supported site, such as a WordPress-based site, or you create a user and use the same email address that you used in your Gravatar account, the image will be extracted. The webmaster should do this using the correct command. Wordpress and Linking to A Google Plus Profile WordPress users' metadata includes email addresses. Normally you do not want your e-mail address to be publicly displayed, but as a parameter to the "gravatar function" you can get the correct image to use in the author's biobox. Comments can be enabled by enabling avatars in the discussion settings of the WordPress dashboard to enable gravatar for WordPress sites.

Create a new author for that user and / or edit their profile information

As mentioned above, user profile information is the information used in the Creator box. The code needs to be inserted only once and is available to all users. Decide in advance the value you want to use in the BioBox. To create a new user, simply click Users >> Add New. You can not fill everything there. After the user or user is created, they must "edit" the user to modify the value. If you want users to do this, you can email them their passwords and choose a setting that allows them to log in and modify their profiles. If you plan to edit, click Users >> All Users, then hover over a specific user and click the Edit link that appears.

Sample code for placing in the theme's Function.php file

Most themes have a "Theme function" file that you can edit in the template editor. Placing the features there and attaching them to the appropriate WordPress "hooks" and "filters" will help you control some aspects of your WordPress environment. In this case, the code that places the custom creator box directly below the content of each post will be executed. Just below the function I will briefly explain what it does. Go to the Appearance >> Editor and go to the Themes Functions file (functions.php). Before editing, you can use FTP software (or web-based file manager) to back up your files. This allows you to restore the backup immediately if there is an error. In most cases, the file has an annotation area that describes where to place the customization features. If not, place it near the bottom.

Finally, the code looks like this

There are two files in the package. The PHP code is stored in the theme's functions.php file, and the CSS code is stored in the style.css file. There is no style in the code except what is the default value of certain elements in the current theme's CSS. It contains a CSS class called author_bio_section, which you can use to change the appearance of the box. There is also an author_details CSS class for paragraph tags that contain images and user descriptions (or live text). There is also an avatar class that is created when using the get_avatar command. For example, you can modify the image to plot to the right or left of the description. If you do not want to interrupt the functionality of the theme and current / future plug-ins, it's a good idea to include a unique prefix for every user-defined function. In this sample, you used it, but you can change all instances of uniqueprefix to match the site name. This function dynamically generates HTML based on the value obtained from the author's profile. Save HTML content to a variable. The variable is output between HTML5 footer tags. Runs only when viewing posts on the "Single Post" page. Wordpress and Linking to A Google Plus ProfileIf the display name can not be found, the default is set to use the user's alias. Some descriptions will contain the "new line" character, replaced with the HTML equivalent "br" tag as a result of executing the nl2br PHP function. You may also use filters to prevent HTML from being used in a user's description, so you can use HTML in the description as it removes the filter from the last line. In many topics, the code is redundant. If you feel the necessity, you can safely omit it.

In conclusion

The code above creates a generic biobox called Jane. If you do not see it the way you want it, do not forget to dress it with CSS. Also remember that there are other variables you can use in the code above. For example, you can have icons that represent various social profiles, author RSS, website links, and so on. You can use the built-in WordPress command to link to the creator archive and build Google Authorship by linking to the author's Google+ profile. Do not forget the rel = author attribute (Google Authorship). You'll also need to link to the WordPress blog in the "Participants" section of your G + profile. We also ensure that the 'by-line' of the WordPress site matches the display name of your G + profile so that we can comfortably match the author with the content. Wordpress and Linking to A Google Plus Profile This G + Authorship approach should work for both single author and multi-author WordPress blogs. Check the structured data test tool to ensure that the situation is correct.

No comments:

Post a Comment

Bottom Ad [Post Page]