Wall collision - 2D top down game

Everybody knows games like: Pokemon, Zelda (old 2d), Binding of Isaac etc. but how can you make the same kind of collision in Unity with a 2D framework?

I mean, the head of the character should collide with stuff like arrows, enemies etc but it shouldn’t collide with the wall on the top. Do I need to use 2 colliders?

Example:

I hope to hear a nice sollution/tutorial.

No you just have to move the collider of the upper wall a bit higher. So you can walk to the wall but not wider.