Set up copyright in WordPress
TipsMake.com - In the previous tutorial, we introduced you to some steps to validate copyright in each article with Google , but what if you want to do the same in WordPress? ?
In essence, WordPress uses a template system to display information in the content section, so adding a rel = 'author' tag will require some customization in the theme. Actually there are quite a few ways to do this, in the article below we will introduce you to the simplest and easiest to implement.
With the blog single author:
First, make sure to set up an About page with basic information about you and the main purpose of the blog site. At the bottom of this About page, insert the path:
Follow me on Google +
And remember to replace http:/// your-google-profile-url with your Google Profile link . Note that the Google Profile link will be in the form of https://plus.google.com/1234567890987654321
Next, use the Theme Editor function and open the functions.php file, insert the following code at the end of this file:
add_filter ( 'the_content' , 'add_author_link' ) ; function add_author_link ( $ content ) { if ( is_single ( ) ) $ content . = '
Tài liệu này được ghi được bởi '
. get_the_author_meta ( 'display_name' ) . '' ; return $ content ; }
Save this file, and from this point onwards at the end of each of your posts there will be an introduction line in the form: " This article is written by . "
With blog multi author:
Collect enough information to update the Jabber / Google Talk school in the Profile section of Google Profile . Next, open the functions.php file and insert the code below:
add_filter ( 'the_content' , 'add_author_link' ) ; function add_author_link ( $ content ) { if ( is_single ( ) ) { $ content . = '
Follow this author at .get_the_author_meta ('jabber') .'"rel =" author "> Google+
' ; } return $ content ; }
The main function of the above lines of code is to aggregate information through the Google Profile URL from the author's Jabber / Gtalk field and insert it at the end of the article. However, this process will last from about 1-2 weeks for Google to update and display the full picture of the author's Profile in the search results returned, and you can use the Rich Snippest Test utility Tool to preview the interface of the website when searched. Good luck!
You should read it
- How to migrate blogs from WordPress.com to WordPress.org
- Add snow effect to WordPress blog
- Add WordPress.com features to your blog
- 3 other ways to speed up WordPress blog
- Instructions for creating a Wordpress blog page
- 11 security tips for WordPress blogs
- Write Blog with Microsoft Word 2013
- Put Google+ on Wordpress
May be interested
- Wix and Wordpress - Which one is better?this article will compare wix with wordpress and highlight the pros and cons of each platform. hopefully after reviewing and comparing wix with wordpress, you will be able to decide which platform is right for you.
- How much does it cost to build a WordPress website?although the core wordpress software is free, the cost of a wordpress site depends entirely on your budget and goals.
- How to change the font in WordPressonce you have successfully installed and set up wordpress on localhost, you realize one thing: wordpress's default font when typing vietnamese does not look good, it is not beautiful when using large font size, or zoom in. .. or simply, we want to change the default font of wordpress, how to do it?
- How to install WordPress pluginafter installing wordpress, the first thing that people need to start learning is how to install wordpress plugins. in this step-by-step guide, tipsmake.com will show you how to install a wordpress plugin.
- Instructions for installing WordPress on Bluehostin this article, you will learn how to install wordpress on bluehost using different methods. the article will also mention what makes bluehost a unique hosting for wordpress.
- How to delete posts posted on WordPressposting on wordpress is very simple and it is easy to delete posts. we can control posts posted to wordpress and delete them if necessary.
- Is Drupal or WordPress the best open source CMS?chances are, when you think about building websites, from wordpress almost immediately appears in your head. wordpress 'dominates' thanks to its market share and accessibility.
- How to set up WordPress for local development in Linuxthis article will follow the path of using apachefriends' easy xampp installer, turning the installation of apache, mariadb, and php into a simple task, just click 'next' and you're done.
- 3 Easy Methods To Customize Your WordPress Site With CSScss styling allows you to edit the colors, spacing, fonts, layout, and basically every other visual element of a wordpress site
- WordPress plugins with more than 300,000 pages that use vulnerabilities are vulnerable to SQL Injection attacksthe sql injection attack capability was found on one of wordpress's most popular plugins, currently installed on more than 300,000 websites. hackers can exploit to steal databases and hijack remote sites.