wordpress面包屑_如何在WordPress中显示面包屑导航链接

wordpress面包屑

Do you want to display breadcrumb navigation links on your WordPress site?

您是否要在WordPress网站上显示面包屑导航链接?

Breadcrumb navigation is a secondary navigation system that tells users where they are on a website relative to the homepage.

面包屑导航是辅助导航系统,可告诉用户相对于首页,他们在网站上的位置。

In this article, we’ll show you how to display breadcrumb navigation links in WordPress.

在本文中,我们将向您展示如何在WordPress中显示面包屑导航链接。

How to display breadcrumb navigation links in WordPress
什么是面包屑导航,为什么需要它? (What is Breadcrumb Navigation and Why Do You Need it?)

Breadcrumb navigation is a term used to describe a hierarchical navigation menu presented as a trail of links. It’s often used as a secondary navigation that allows users to go up in the website’s hierarchy of pages.

面包屑导航是一个术语,用于描述显示为链接轨迹的分层导航菜单。 它通常用作辅助导航,允许用户进入网站的页面层次结构。

Breadcrumbs displayed on WPBeginner website

Breadcrumb navigation links are different than the default navigation menu system in WordPress.

面包屑导航链接与WordPress中的默认导航菜单系统不同。

The purpose of breadcrumb navigation is to help users navigate around your website. It also helps search engines understand the structure and hierarchy of links on a web page.

导航导航的目的是帮助用户浏览您的网站。 它还可以帮助搜索引擎了解网页上链接的结构和层次结构。

Search engines like Google have started displaying breadcrumbs along with the page title in search results. This gives your website more visibility in the search results and increases your click-through rate.

像Google这样的搜索引擎已经开始在搜索结果中显示面包屑以及页面标题。 这使您的网站在搜索结果中更具可见性,并提高了点击率。

Breadcrumb navigation in search results

Having said that, let’s take a look at how to add breadcrumb navigation links in WordPress.

话虽如此,让我们看一下如何在WordPress中添加面包屑导航链接。

使用Breadcrumb NavXT插件添加面包屑导航 (Add Breadcrumb Navigation with Breadcrumb NavXT Plugin)

This is by far the easiest way to add breadcrumb navigation to your WordPress site. It’s flexible, easy to use, and has more options than you can imagine. See why we use Breadcrumb NavXT on WPBeginner.

到目前为止,这是向您的WordPress网站添加面包屑导航的最简单方法。 它灵活,易于使用,并且具有您无法想象的更多选择。 了解为什么我们在WPBeginner上使用Breadcrumb NavXT

First thing you need to do is install and activate the Breadcrumb NavXT plugin. For more details, see our step by step guide on how to install a WordPress plugin.

您需要做的第一件事是安装并激活Breadcrumb NavXT插件。 有关更多详细信息,请参阅有关如何安装WordPress插件的分步指南。

Upon activation, you need to visit the Settings » Breadcrumb NavXT page to configure the plugin settings.

激活后,您需要访问设置»面包屑NavXT页面来配置插件设置。

Settings page for Breadcrumb NavXT plugin

The default settings should work for most websites. However, you can customize the settings as needed.

默认设置适用于大多数网站。 但是,您可以根据需要自定义设置。

The settings page is divided into different sections. On the general settings tab, you can define how the plugin behaves globally on your site.

设置页面分为不同部分。 在常规设置标签上,您可以定义插件在网站上的整体行为。

It allows you to modify the breadcrumb navigation links template. You will also notice that these link templates use Schema.org parameters in the link tag.

它允许您修改面包屑导航链接模板。 您还将注意到,这些链接模板在链接标记中使用Schema.org参数。

The post types tab under plugin settings allows you to set up breadcrumb links for posts, pages, and any custom post types.

插件设置下的帖子类型标签可让您为帖子,页面和任何自定义帖子类型设置面包屑链接。

You can choose how you want to display your post hierarchy. By default the plugin will use Site Title > Category > Post Title. You can replace categories with tags, dates, or post parent.

您可以选择显示帖子层次结构的方式。 默认情况下,插件将使用“ 网站标题”>“类别”>“帖子标题” 。 您可以将类别替换为标签 ,日期或后代。

The taxonomies and authors tabs have the similar templates for your breadcrumb navigation links.

分类法和作者选项卡具有与面包屑导航链接相似的模板。

Don’t forget to click on the save changes button to store your changes.

不要忘记单击“保存更改”按钮来存储您的更改。

在您的网站上显示面包屑NavXT (Showing Breadcrumb NavXT on Your Website)

To display your breadcrumbs on your site, you first need to go to Appearance » Customize. From there, you’ll choose where you want your breadcrumbs to be displayed in the Position dropdown.

要在您的站点上显示面包屑,您首先需要转到外观»定制 。 在此处,您将选择希望将面包屑显示在“ 位置”下拉列表中的位置

In the Breadcrumb Source, you’ll need to choose ‘Breadcrumb NavXT’.

在“ 面包屑来源”中 ,您需要选择“ Breadcrumb NavXT”。

Breadcrumb NavXT settings

That’s all for this step. You can now visit your website and see the breadcrumb navigation links by visiting any post or page.

这就是所有步骤。 现在,您可以通过访问任何帖子或页面来访问您的网站并查看面包屑导航链接。

使用Yoast SEO插件添加面包屑导航链接 (Adding Breadcrumb Navigation Links Using Yoast SEO Plugin)

If you’re already using Yoast SEO plugin, then you can use their built-in Breadcrumb navigation feature, although it’s limited in features compared to BreadcrumbNavXT plugin.

如果您已经在使用Yoast SEO插件,则可以使用其内置的Breadcrumb导航功能,尽管与BreadcrumbNavXT插件相比,其功能受到限制。

The first thing you need to do is install and activate the Yoast SEO plugin. We have a complete step-by-step guide on how to install and set up Yoast SEO plugin for WordPress.

您需要做的第一件事是安装并激活Yoast SEO插件。 关于如何为WordPress安装和设置Yoast SEO插件,我们有完整的分步指南。

Upon activation, you need to go to the SEO » Search Appearance » Breadcrumbs page and check the ‘Enable Breadcrumbs’ option.

激活后,您需要转到SEO»搜索外观»面包屑页面,并选中“启用面包屑”选项。

Yoast breadcrumb settings

Once checked, you will find several options to change how breadcrumbs would display on your site. Default settings should work for most, however, feel free to change anything you like.

选中后,您将找到几个选项来更改面包屑在网站上的显示方式。 默认设置适用于大多数情况,但是可以随时更改您喜欢的任何内容。

Once you are done, click on the save changes button to store your settings.

完成后,单击保存更改按钮以存储您的设置。

在您的网站上显示Yoast的面包屑导航 (Showing Yoast’s Breadcrumb Navigation on Your Site)

To display your breadcrumbs on your site, you first go to Appearance » Customize. From there, you’ll choose where you want your breadcrumbs to be displayed in the Position dropdown.

要在网站上显示面包屑,请首先转到外观»定制 。 在此处,您将选择希望将面包屑显示在“ 位置”下拉列表中的位置

In the Breadcrumb Source, you’ll choose ‘Yoast SEO Breadcrumbs’.

在“ 面包屑来源”中 ,您将选择“ Yoast SEO面包屑”。

Yoast SEO beadcrumbs settings

That’s all. You can now visit your website to see your breadcrumb navigation in action.

就这样。 现在,您可以访问您的网站以查看面包屑导航。

We hope this article helped you learn how to display breadcrumb navigation links in WordPress. You may also want to see our ultimate WordPress SEO guide to improve rankings, and our step by step guide on how to create an email newsletter to grow your traffic.

我们希望本文能帮助您学习如何在WordPress中显示面包屑导航链接。 您可能还希望查看我们的终极WordPress SEO指南以提高排名,以及有关如何创建电子邮件新闻稿以增加流量的分步指南。

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

如果您喜欢这篇文章,请订阅我们的YouTube频道 WordPress视频教程。 您也可以在TwitterFacebook上找到我们。

翻译自: https://www.wpbeginner.com/plugins/how-to-display-breadcrumb-navigation-links-in-wordpress/

wordpress面包屑

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值