Own Navigation - Disable some parts in cardview and the main nav (back)

I’m making a own navigation. Its filled from a table, where I reference Pages and subpages in a different way then in the main nav. So I csn link the same page from two different mainpages.

Is it possible to disable the two red marks?