Always take off your shoes and hat before entering the temple (and indeed any room where there is a Buddha image). Even if there is no sign in English, this should be fairly obvious from other shoes already lined up outside. If you are wearing a hat take it off before going inside, but don’t place it on top of your shoes because of the association between the head (high status) and feet (low status).