How should syrups be stored after opening?

The best way to store syrup after opening is in the fridge, but it is also possible to store it elsewhere if it is kept away from heat and light. (Cupboard, cellar...).