- WordPress Search Engine Optimization(Second Edition)
- Michael David
- 507字
- 2021-07-09 21:29:22
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.
- 數據結構和算法基礎(Java語言實現)
- Programming ArcGIS 10.1 with Python Cookbook
- iOS應用逆向工程(第2版)
- Elasticsearch for Hadoop
- H5頁面設計:Mugeda版(微課版)
- Angular開發入門與實戰
- C語言從入門到精通
- Python 3.7從入門到精通(視頻教學版)
- Kotlin Programming By Example
- 大學計算機基礎實訓教程
- 從零開始學UI:概念解析、實戰提高、突破規則
- C# 10核心技術指南
- Unity與C++網絡游戲開發實戰:基于VR、AI與分布式架構
- 前端Serverless:面向全棧的無服務器架構實戰
- 梔子貓的奇幻編程之旅:21天探索信息學奧賽C++編程