官术网_书友最值得收藏!

Creating reliable and text-based navigation

WordPress automatically generates simple, text-based navigation that works well for both users and search spiders. Site visitors employ your website's navigation to browse your site and find content. Search engines use your navigation in a similar way, with a twist. Search engines follow the links in your navigation to find and index your pages. In addition, search engines use the text in your navigational links to reliably determine the topic of the destination page. In other words, the text you use in your navigation is a search engine ranking factor.

Tip

Avoiding image links in navigation

It is possible to create a navigation menu that employs images instead of text. However, when a search engine spider encounters an image link with no anchor text, the search engine has no text to define that element for the destination page. So, for search optimization, it's clearly better to use text links rather than image links in navigation.

Luckily, WordPress generates text-based navigation menus based on your Post and Page titles. WordPress accomplishes this automatically. For the most part, this is an effective approach to search optimization. There was some criticism for earlier versions of WordPress because the navigation menus that WordPress generated were difficult to customize—they were truly automated, in the sense that they were very difficult to adjust manually. For example, if you wrote a page with a 30-word title, WordPress would display the entire 30-word title in the navigation. For some users, the better approach would be to allow customization of the navigation entries.

In response to this limitation, a host of third-party plugins such as Exclude Pages, and My Page Order emerged to give webmasters more control over menus. With the release of WordPress 3.0 and continued in WordPress 4.0, a complete menu control area is now fully integrated into the dashboard. With WordPress 3.0 menus, you can now control the following:

  • The title of the Page need not be the text of the navigation link; you can enter custom text for the navigation.
  • You can create custom links to other websites or pages and include them within your navigation.
  • You can place entire Post categories within your Page navigation. This wasn't possible with WordPress versions before 3.0.

There is one limitation with WordPress 4.0 menus. The full functionality is available for Pages, but not for Posts. However, there is a slightly clunky workaround. To make a post appear in the custom menu, grab the full URL of the post and enter it into your custom menu as a custom link. That way, you can mix your Posts within your Page navigation, as well as create custom text for the navigation links.

Tip

One warning goes along with using custom menus: when you are using a custom menu for navigation, new Posts and Pages won't automatically appear in your custom navigation as they would in traditional WordPress menus—you need to remember to enable the new content in the custom menu for the Pages or Posts to appear.

主站蜘蛛池模板: 云南省| 南安市| 吉林省| 昭平县| 临泉县| 鹤庆县| 台中市| 时尚| 阿勒泰市| 兴和县| 文成县| 永顺县| 丰城市| 周至县| 阿克陶县| 宜昌市| 乐陵市| 花垣县| 手机| 马公市| 囊谦县| 平江县| 监利县| 宾阳县| 富宁县| 永城市| 三穗县| 库尔勒市| 莎车县| 淳化县| 金门县| 林口县| 北安市| 湖口县| 丰镇市| 隆安县| 左贡县| 广德县| 仪征市| 道孚县| 无棣县|