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. 

Enhance Navigation with Divi Breadcrumbs

Improve your site's navigation and search engine optimization with the Divi Breadcrumbs Module. Easily create SEO-friendly breadcrumbs that reflect menu structures using the "Generate Breadcrumbs from" feature. Perfect for aligning breadcrumbs with custom menus like the Divi header menu for seamless user 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.

Latest From Divi Booster

Enable Automatic Looping for YouTube Videos in the Divi Video Module

Enabling automatic looping for YouTube videos in your Divi video module ensures that content plays seamlessly and continuously without interruption. This feature can enhance user engagement, highlight key information, or create dynamic visual effects on your website....

Hide Video Controls in Divi Video Module

Disabling YouTube video controls in the Divi Video Module helps create a seamless, distraction-free viewing experience for your site visitors. This approach is useful when you want full control over how your video content appears and is interacted with on the page, or...

Mute YouTube Videos by Default in the Divi Video Module

In the Divi Video Module, starting your YouTube videos muted by default can create a more user-friendly browsing experience on your webpage. It is particularly beneficial for reducing distractions, enhancing visitor engagement, and providing a seamless content preview...

Autoplay Videos in Divi Video Module

Enabling videos in your Divi video module to start playing automatically can enhance both the site's design and user engagement. To ensure full compatibility with browser requirements, such as Chrome's autoplay policy, it's often necessary to start your videos muted...

How to Add the Post Status in Divi's Dynamic Content

Divi's Dynamic Content feature is great for enhancing your post/page templates with post-specific information. While Divi includes an option to show information such as the Post Created Date using Dynamic Content, there is no equivalent option for the Post Status....

Random Divi Posts