You should take off your shoes and hat when entering a Buddhist or Hindu temple. If you’re carrying an umbrella, unfurl it. Your legs & shoulders should be covered.