Tour Master – How to add Yoast breadcrumb

The developer documentation assumes you have knowledge and coding skills. While we created these docs to help you achieve things not available in the original features, we do not provide support if something doesn’t work when referencing the developer documentation. If the example code doesn’t work for you, please debug it yourself or hire a freelancer to help with debugging.

All customizations will be lost when you update our theme/plugin to a new version in the future. To avoid this, you must use filters and actions: 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.