A messy custody battle is one of the most damaging aspects of divorce on children. Do everything you can to keep your children from becoming directly involved in the legal proceedings.
If you have any choice in the matter, keep your children as far removed from a court battle as you can. If your state allows mediation, try that route first and keep it between the adults. Children are not ready to make decisions against either parent. If you do not have a choice and your children are subpoenaed, be sure to have a strong support system who will pray with you.
Your children will be hurt, anxious, and confused. They need to see you drawing on the Lord's strength and seeking His peace during this time. Children will learn how to handle situations like this by watching you. Be very careful that your behavior is godly and peaceable.
In the Bible, Ephesians 6 explains the importance of putting on the "armor of God" each day so that you will be strong enough to withstand any trials that you face. Read these verses with a prayerful attitude. Make a decision to put on this armor every day, whether you are going to court, trying to keep your children out of court, or if you are just facing another difficult day.
"Put on the full armor of God so that you can take your stand against the devil's schemes" (Ephesians 6:11).