Ticks can drop out of trees on your head, or attach to your hair when your head brushes past some leaves on a tree. Also, if your bare skin is not covered in insect repellent, that could also be a route that they get to the rest of your body.
The most effective method of not getting bitten is not to go in to the woods at all.