Hi Jodie,
Can you create a Hook Element, then add this code:
<style>
li.breadcrumb-item.active
{display: block !important;}
</style>
Hook it to wp_head
and set the display rule to Post category archives - all archives
Then add this Snippet:
add_filter( 'generate_hook_element_display', function( $display, $element_id ) {
if(400138 === $element_id && !is_admin()) {
$category = get_category( get_query_var( 'cat' ) );
var_dump($category->category_parent);
if($category->category_parent > 0) {
return false;
}
}
return $display;
}, 10, 2 );
Replace 400138
with the ID of the Hook Element you just created.
Adding PHP: https://docs.generatepress.com/article/adding-php/#code-snippets