Step 1: Add canonical tag
Official introduction:
-
<link rel= "canonical" href= "http(s)://xxx" />
Operation record:
-
<!-- Baidu bear palm adds canonical label --> -
<link rel= "canonical" href= "<?php the_permalink() ?> " />
Step 2: Add JSON_LD data
Official introduction:
-
<script type= "application/ld+json" > -
{ -
"@context" : " https://ziyuan.baidu.com/contexts/cambrian.jsonld " , -
"@id" : " https://ziyuan.baidu.com/college/articleinfo?id=1464 " , -
"appid" : "1582926961485115" , -
"title" : "Baidu Mobile Search Landing Page Experience White Paper - Advertising 2.0" , -
"images" : [ -
" https://ss0.bdstatic.com/5aV1bjqh_Q23odCf/static/superman/img/logo/bd_logo1_31bdc765.png " , -
" https://ss0.bdstatic.com/5aV1bjqh_Q23odCf/static/superman/img/logo_top_ca79a146.png " , -
" https://m.baidu.com/static/index/plus/plus_logo.png " -
], -
"description" : "High quality and reasonable advertising, as a supplement to information, is widely liked by users. At the beginning of 2017, Baidu User Experience Department conducted a satisfaction survey on users, and found that many malicious and low-quality advertising seriously damaged users' search experience." , -
"pubDate" : "2017-06-15T08:00:01" -
} -
</script>
Operation record:
-
<!-- Baidu bear palm adds JSON_LD data --> -
<script type= "application/ld+json" > -
{ -
"@context" : " https://ziyuan.baidu.com/contexts/cambrian.jsonld " , -
"@id" : "<?php the_permalink() ?> " , -
"appid" : "1577487331441713" , -
"title" : "<?php the_title(); ?> " , -
"images" : [ -
" http://wosn.net/wp-content/themes/begin/img/favicon.png " -
], -
"description" : "<?php if (has_excerpt()){ ?> -
<? php the_excerpt() ?> -
<? php } else { echo mb_strimwidth(strip_tags(apply_filters('the_content', $post->post_content)), 0, 120," ... "); } ?>" , -
"pubDate" : "<?php echo get_the_date() . 'T'. get_the_time('H:i:s'); ?> " -
} -
</script>
Step 3: Add bear paw ID declaration
Official introduction:
-
<script src= "//msite.baidu.com/sdk/c.js?appid=1582926961485115" ></script>
Operation record
Part 4: Add the code of focus function
Official introduction:
<script>cambrian.render('head')</script>
<script>cambrian.render('body')</script>
<script>cambrian.render('tail')</script>
-
<div style= "padding-left: 17px; padding-right: 17px;" > -
Corresponding bar code -
</div>
Operation record:
-
<div class = "single-content" > -
<? php if ( has_excerpt() ) { ?><span class = "abstract" ><fieldset><legend><? Php_e ('summary ',' leiben '); ?></ legend><?php the_excerpt() ?>< div class = "clear" ></div></fieldset></span><? php }?> -
<? php get_template_part('ad/ads', 'single'); ?> -
<? php the_content(); ?> -
<script>cambrian.render('tail')</script><!-- Add bear paw focus function code - bottom bar --> -
</div>