I just want to display a section in the parent category. And I want to display another section in the child category. How to do it?
if ( is_category() ) {
get_template_part( 'template-parts/banner/tab-1' , 'xcde' );
} else {
get_template_part( 'template-parts/banner/tab-2' , 'xcde' );
]