When I first started doing front squats I found figuring out how to properly place and hold the bar very difficult, but they seemed to be an extremely good training stimulus so I persevered and after many months and a decent amount of experimenting I now feel relatively comfortable with them. Here are a few tips.
Where a t shirt that has a relatively high collar around your next so that as little skin as possible touches the bar.
The bar rests on muscle, not bone. If it rests on bone it is painful. You want it mostly resting on front felt muscle.
The previous tip about practicing some with your arms out straight in front of you is really good. Untamed strength has a nice video showing how to use lifting straps to deal with wrist flexibility problems if you have true wrist flexibility problems, but I imagine very few people need that.
Experiment with different grip widths.
I personally only try to keep 2 fingers on the bar, and no more. Experiment with number of fingers on the bar and how w far apart your fingers are.
Whenever technique is a problem high frequency is a very good idea. Do front squats at least twice a week, possible 3x if you have enough gym days to do so.
Tip Ihor from one of rippetoe’s books: since front squats are technically challenging for you, do more sets with fewer reps per set. So I like doing sets of 4 or 5 reps and then 4-6 sets. This plus higher frequency worked really well to improve my technique since it gives more practice getting into rack position.
Focus a lot on arching your upper back while getting into rack position. This helps me get my elbows up.