How to remove Related Posts from Hestia

You can remove Hestia's related posts section from your blog posts by adding the following code to your functions.php file or using a site-specific plugin. We recommend that you use a child theme.

function remove_hestia_related_posts() {
	remove_all_actions( 'hestia_blog_related_posts');
}
add_action( 'wp_head', 'remove_hestia_related_posts' );

That should do it.

If you want to remove the related posts section only for one post page particularly, you can adapt the code like this, changing the number with the ID of the post you need.

function remove_hestia_related_posts() {
    if ( is_single( 103 ) ) {       
        remove_all_actions( 'hestia_blog_related_posts');   
    }
}
add_action( 'wp_head', 'remove_hestia_related_posts' );
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