Snippets: Move Category Description under Pagination

By default in the Total theme the category/archive descriptions are added as subtitles under the main title but there are theme options which allow you to move it into the main content area above the loop. Now if you want to move the category description so it's below your posts/pagination it's very easy. Here is the code you would use to move it.

// First remove from subtitle
add_filter( 'wpex_page_header_has_subheading', function( $subheading ) {
	if ( is_category() || is_tag() ) {
		$subheading = '';
	}
	return $subheading;
} );

// Add category description under the loop
add_action( 'wpex_hook_content_bottom', function() {
	if ( is_category() || is_tag() ) {
		get_template_part( 'partials/term-description' );
	}
} );

Snippet Type: PHP

All PHP snippets should be added via a child theme's functions.php file or via the Code Snippets Plugin (or alternative plugin)