How transparent things can allow light to pass through them?
Photons pass through glass because they are not absorbed. And they are not absorbed because there is nothing which "absorbs" light in visual frequencies in glass. You may have heard that ultraviolet photons are absorbed by glass, so glass is not transparent for them. Exactly the same happens with X-rays for which our body is nearly transparent whilst a metal plate absorbs it. This is experimental evidence.
Any photon has certain frequency - which for visible light is related to the colour of light, whilst for lower or upper frequencies in the electromagnetic spectrum it is simply a measure of the energy transported by photon. A material's absorption spectrum (which frequencies are absorbed and how much so) depends on the structure of the material at atomic scale. Absorption may be from atoms which absorb photons (remember - electrons go to upper energetic states by absorbing photons), from molecules, or from lattices. There are important differences in these absorption possibilities:
As glass is a non-crystalline, overcooled fluid, consisting of molecules, its absorption occurs in the 1st and 2nd ways, but because of the matter it is composed of, it absorbs outside our visible spectrum.