Add Rank Math breadcrumbs in Hestia

In order to use the breadcrumbs option provided by the Rank Math plugin, just follow the steps below.

1. Set up the Rank Math breadcrumbs.

2. Create a child theme for Hestia.

3. Open the functions.php file of your child theme and add the following code at the end of it. Save your file and everything should be ok.

add_theme_support( 'rank_math_the_breadcrumbs' );

// Single post
add_action( 'hestia_before_single_post_wrap', 'hestia_child_add_rank_math_breadcrumbs', 100 );

// Single page
add_action( 'hestia_before_page_content', 'hestia_child_add_rank_math_breadcrumbs', 100 );

// Index
add_action( 'hestia_index_page_before_content', 'hestia_child_add_rank_math_breadcrumbs', 100 );

function hestia_child_add_rank_math_breadcrumbs() {
   if (function_exists('rank_math_the_breadcrumbs')) rank_math_the_breadcrumbs();
Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us