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

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.

主站蜘蛛池模板: 鱼台县| 方正县| 昔阳县| 如东县| 色达县| 怀柔区| 左权县| 策勒县| 尼勒克县| 浮梁县| 定安县| 苍南县| 沭阳县| 丽江市| 博乐市| 运城市| 黄陵县| 蒲江县| 繁峙县| 东安县| 宁津县| 津南区| 垫江县| 孝义市| 舞阳县| 林州市| 太谷县| 扬中市| 扎兰屯市| 永清县| 逊克县| 四川省| 沅江市| 新龙县| 衡山县| 长沙市| 调兵山市| 会昌县| 香港 | 吴江市| 垣曲县|