Tour Master – How to add Yoast breadcrumb

The docs for developer mean you must have knowledge and coding skill. Although, we’re create the docs for developer to help you achieve something not available in original feature, but we don’t provide support for anything not work when you reference with docs for developer. If the example code not work for you, please debug it by your-self or hire a freelancer to debug it for you instead.

All the customize will lose when you update our theme/plugin to new version in future. To avoid it, you must use filter and action: https://developer.wordpress.org/plugins/hooks/.

Please open those files:

  • \wp-content\plugins\tourmaster\single\tour.php
  • \wp-content\plugins\tourmaster\single\tour-2.php

Then search the close tags of tourmaster-single-header:

echo '</div>'; // tourmaster-single-header-container-inner
echo '</div>'; // tourmaster-single-header-container
echo '</div>'; // tourmaster-single-header // SEARCH HERE

Then add the breadcrumb code like below:

echo '</div>'; // tourmaster-single-header-container-inner
echo '</div>'; // tourmaster-single-header-container
echo '</div>'; // tourmaster-single-header

if ( function_exists('yoast_breadcrumb') ) {
  yoast_breadcrumb( '<p id="breadcrumbs">','</p>' );
}

Save the file and check your website again.

The breadcrumb doesn’t contain any style so you must add the style for it by using CSS by yourself, we don’t provide support for it.