Generating Divi Breadcrumbs from a Menu

Written by Dan Mossop

The Divi Breadcrumbs Module lets you add SEO-ready breadcrumbs to any Divi builder layout. By default, the breadcrumbs are based on the structure of the site as it is defined in WordPress (e.g. using categories, tags, parent pages, and so on). But what if you need the breadcrumbs to match the the structure of a custom menu, such as the Divi header menu or Divi menu module? For example, this one:

You can do so, using the  "Generate Breadcrumbs from" option, like so:

Set "Generate Breadcrumbs from:" to "WordPress Menu" and then select your menu from the "Select Menu:" dropdown that appears. 

The feature works by retrieving the structure of the menu, and looking for any menu item whose URL matches the current page's URL. If it finds one, it then retrieves the item's parent items from the menu and converts them into breadcrumbs. Finally these are inserted between the home breadcrumb and the current page breadcrumb using a filter provided by Divi Breadcrumbs Module, to produce the result, e.g.

Note that the final breadcrumb is taken from the page title, rather than the page's entry in the menu.

This option is available in Divi Breadcrumbs Module version 1.4.4 onwards. 

Generate Custom Breadcrumbs with Divi

Enhance your website's navigation and SEO with custom menu-based breadcrumbs using the Divi Breadcrumbs Module. Easily set up breadcrumbs that reflect your site's menu structure for a consistent and user-friendly experience.

About Dan Mossop

Dan is a Scottish-born web developer, now living in Brisbane with his wife and son. He has been sharing tips and helping users with Divi since 2014. He created Divi Booster, the first Divi plugin, and continues to develop it along with 20+ other Divi plugins. Dan has a PhD in Computer Science, a background in web security and likes a lot of stuff, 

0 Comments

Submit a Comment

Comments are manually moderated and approved at the time they are answered. A preview is shown while pending but may disappear if your are cookies cleared - don't worry though, the comment is still in the queue.

Your email address will not be published. Required fields are marked *.

We may earn a commission when you visit links on our website.