Add Yoast breadcrumbs in Hestia

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

1. Set up the Yoast 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( 'yoast-seo-breadcrumbs' );

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

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

// Blog page
add_action( 'hestia_before_index_posts_loop', 'hestia_child_add_yoast_seo_breadcrumbs', 100 );

function hestia_child_add_yoast_seo_breadcrumbs() {
    if ( function_exists( 'yoast_breadcrumb' ) ) {
        yoast_breadcrumb( '<p id="breadcrumbs">', '</p>' );
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