WordPress Blog Links only on the home page display method

Source: Internet
Author: User
Keywords WordPress

Intermediary transaction http://www.aliyun.com/zixun/aggregation/6858.html ">seo diagnose Taobao guest cloud host technology Hall

As we all know, by default, WordPress blog link is the whole station display, and there is no only in the background of the home page options. and his website program such as CMS, Zblog friend chain is only shown on the home page, so WordPress blog and other sites Exchange links will be more disadvantage. You get the other side of the page is scattered to the weight, but to disperse the whole station of the weight of all pages to each other. And once the other side of the site appears, WordPress blog to bear the whole station of the risk of death chain, serious people will be punished by the search engine.

I do not understand the code, so have to rely on WP blog powerful plug-in library. Today search for a moment, found widget Logic can easily solve this problem, let WordPress blog friend chain only displayed in the home page. Widget Logic plug-ins give each background gadget an extended option to customize your sidebar content based on different pages.

Widget Logic Plug-in Usage

1. Install plugin: Blog Backstage--plugin--Search widget logic--install and activate

2. Plug-in settings: Appearance-gadget gadgets below will be a widget logic extensions if you need to set the friend chain only on the first page, in the input box input "Is_home () &&!is_paged ()" can be. The following figure:

  

Widget logic plug-in common parameter values

Is_home () is displayed only on the home page

Is_single () is displayed only on the story page

Is_page () is displayed only on the page

Is_category () is displayed only on the article category page

Is_tag () is displayed only on the Article tab

Is_archive () is displayed only on the archive page

Is_404 () is only shown on page 404

Is_search () is displayed only on the search results page

Is_feed () is displayed only on the subscription page

Widget logic Plugins and some syntax

|| Representations or,&& representations and,! The example language is as follows:

Is_home () only home page display

!is_home () page display except the home page

!is_category (5) is displayed only in the category of ID non 5

Is_home () | | Is_category (' Baked-goods ') is displayed on the home page or the category name Baked-goods

Is_page (' about ') only on page display

By default, the sidebar of all pages under the Worpress blog is the same, which may not be appropriate or professional, because some sidebar is only suitable for specific pages. Flexible use widget logic Plug-ins, easy to implement Site page sidebar customization.

Unless noted, the article is Ji Yuan original, copyright belongs to the quarterly notes, reproduced please indicate the source, thank you.

This article address: http://www.onezee.net/archives/171.html

Related Article

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.