What causes loss of smell during a cold?

I have a cold (or something coldlike), but for about half of the day today have been able to breathe okay through my nose. Yet, I still have no sense of smell.

Which leads to my question. What is the cause of the loss of smell during a cold? Also is there anything I can do to help it return?

The virus damages the olfactory nerves. It’s usually (but not always) temporary.