I'm sorry, but before I would recommend you do anything at all, I would want to know what you have done to address the issue. Some information that would be helpful would include:
food items tried
methods of presentation tried
intervals between attempts
temperatures for the habitat
proximity to light, heat, sound, or vibration sources
and about a 1000 other things . . .
The point is that a cornsnake hatchling can go off its feed for almost any reason, and you haven't given us enough information about your setup to help you out. You may very well need to go to anoles, but if that is not the real problem, you may just be teaching your snake to eat something that it would not otherwise have demanded, and THEN you'll just have another layer of mess with which to deal.
So, fill in the blanks for us a bit, and we'll all do our best to help you out with your problem feeder.