Helping a child with colic is primarily a matter of experimentation and observation. If you can identify and eliminate a trigger for the colic, that is best. Even if you can't, learn which measures most comfort the baby.
Foods - If the baby is breast-fed the mother should avoid stimulants such as caffeine and chocolate. She should also eliminate dairy products and nuts for a few weeks, as these may be causing allergic reactions in the baby. People often hear that breastfeeding moms should avoid broccoli, cabbage, beans, and other gas-producing foods. However, there is not much evidence that these foods are a factor.
Formula - Switching formulas is NOT helpful for most babies, but is very important for some.
Medicine - Some medicines the breastfeeding mom may be taking can also lead to crying.
Feeding - If a bottle feeding takes less than 20-minutes, the hole in the nipple may be too large. Avoid overfeeding the infant or feeding too quickly.
Click here for reference