Solar lights can charge even when placed in the shade. But they will not be as efficient in that position as when exposed directly to the sun. Thus, the battery will not charge as required, which results in reduced operating hours during the night. Therefore, install them in a location that is exposed to the sun for most part of the day.