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

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.

主站蜘蛛池模板: 托里县| 泊头市| 新乡市| 定边县| 北京市| 青川县| 巩留县| 拜城县| 济阳县| 得荣县| 密云县| 罗平县| 克拉玛依市| 赤水市| 且末县| 枝江市| 恩施市| 绍兴县| 阳西县| 股票| 青浦区| 临沂市| 中阳县| 衡东县| 丰镇市| 华蓥市| 休宁县| 察隅县| 临桂县| 阿巴嘎旗| 西乡县| 顺昌县| 榕江县| 孝义市| 滦南县| 临澧县| 出国| 邵阳县| 桃园市| 绥芬河市| 夹江县|