Google Rich Web page Summary tutorial

Source: Internet
Author: User
Tags modify php file

Google's rich Web page summary can help Google search users more quickly to determine whether a Web site contains the information they are interested in. Google has previously launched a rich Web page summary of shopping, recipes, reviews, videos, music, and events. Today I would like to introduce a rich Web page summary in the general website SEO optimization on the use.

For the blog, there are two main Rich page summary function, one is the directory classification summary function, one is the author summary function.

The Directory classification summary function, may let the user in the Google search interface, can intuitively see the article specific classification information, understands to the website structure, guides the user to further consult more content.

Webmaster Use method is also very simple, as long as the article page, the original directory classification link to add a few lines of code can.

For example, for Z-blog article page, template file b_article-single.html original classification code is:< #article/category/name#>

We need to modify this code to the following code:

<div itemscope itemtype= "Http://data-vocabulary.org/Breadcrumb" style= "Display:inline" ><a href= "<#" article/category/url#> "itemprop=" url "><span itemprop=" title ">< #article/category/name#></ Span></a></div>

Then save the reconstruction article, so that the next time Google included the article page, will be the article's rich Web page summary included.

For WordPress, modify the single.php file and add the following code to the appropriate location:

<?php
$separator = ' › ';
$category = Get_the_category ();
if ($category) {
foreach ($category as $category) {
Echo ' <div itemscope itemtype= ' http://data-vocabulary.org/Breadcrumb ' style= ' display:inline ' > ';
Echo $separator. "<a href=\" ". Get_category_link ($category->term_id)." \ "Itemprop=\" url\ "><span itemprop=\" title\ "> $category->name</span></a>
";
Echo ' </div> ';
}}
?>

Displays the author's function, needs the user to have an account number on the Google +, the concrete realization method is:

Create a specific link to your Google + profile on the home page of the webmaster website, such as: <a href= "[Profile_url]?rel=author" >william long</a>

Replace [Profile_url] with your own Google + profile URL, for example: <a href= "Https://plus.google.com/112646999948608559077?rel=author" >william long</a>

It is important to note that the link must contain a rel=author parameter. If this parameter is missing, Google will not be able to associate the content of the webmaster with the Google + profile.

Next, visit this address (HTTP://PLUS.GOOGLE.COM/ME/ABOUT/EDIT/CO) to modify the contributor section of the site, click the Add Custom link in the dialog box that appears, and then enter your website URL and click Save.

After a few days, Google can display the site's author summary information in its search results.

The above function test tool address:http://www.google.com/webmasters/tools/richsnippets , stationmaster may revise immediately after use this tool to test the display effect.

Update: There is a reader feedback that there is another way to display the author in google search results, just add a line to the Site page Header



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.