I have had several friends vow to never marry in life because they were so traumatized by their parent’s divorce.
Divorce can be extremely difficult on children. Many times they don’t understand why the divorce had to happen or they may blame themselves as the cause of the divorce. They can also develop a deep distain for the covenant of marriage because of their parent’s bitter divorce or because of the bad behavior of one or both parents following the divorce.
It is important that parents do certain things in order to help the children process the divorce, not blame themselves and still develop in a healthy manner mentally, socially and emotionally. You want your kids to someday have healthy, happy lives and relationships, so help them following the divorce by doing some very specific things, which I will outline below.

1. Get along for the sake of the kids

Keep your arguments away from the eyes and ears of your children. They do not need to be subject to your on-going battles following a divorce.
Some couples report that they get along better with their ex following a divorce. Unfortunately, this is not what most couples experience. You will be going through your own grieving process following the dissolution of a marriage. Do not use your children as your personal counselor and confidant. Seek professional help, so you have someone trusted to vent to who can also provide you with wise counsel.
Keep the conversations about your ex out of eyesight and earshot of your children. It can only harm them. Think of it this way, they are 50% of that other person who you now reject. They can take that rejection personally as they are half of that person. Especially if you are vocal about your disdain for your ex. Your ex is still their parent and if they are not adopted, then they are 50% of that person’s DNA makeup. They can fear your rejection and also think that there are parts of them that you don’t like just as much as you don’t like your ex.
There are situations where you may not be able to avoid your ex someday, such as parent/teacher conferences, weddings, and graduations. Learn to put on a good face and keep your conversations on the surface if interaction is required. Use simple pleasantries as though you are standing in line at the grocery store and you see a colleague from work. “How are you” and “nice weather we have been having” is enough to get through the awkward silence and still maintain a good image to your children.
You can then vent your frustrations regarding your ex to your counselor. There is a time and a place for everything. Blowing off steam to your ex in front of your children is never acceptable. Ranting to your counselor about your ex in the privacy of their office is a much better solution. It’s not that you need to bottle things in forever, it is merely holding on to things until the time is right to release those emotions in a setting that won’t harm your children.
Life is hard enough having to live in two homes, to have time away from one parent while being with the other. It was not their choice nor their preference. Make the transition easier by trying to get along with your ex when you are face to face. If that is of great difficulty then keep the interactions to a minimum. This can be something that is added at a later date into your custody agreement if needed.

Custody exchanges

Custody exchanges are typically when most parents have to see one another the most. Therefore, chose a neutral place for exchange that allows for exchange of the children from one parent to another to happen with ease and little interaction.

Select a location where a lot of people are present, so there is less likely to be any outbursts or unneeded language by either parent. Keep in mind that there are eyes and ears watching. The most important are those of your children, so keep this in mind when you see your ex and emotions flare inside of you.
I was a stepmom to two children in a previous marriage. I was in their lives for eight years. My experience with both the mom and the dad proved to me that even intelligent, well meaning parents can come unglued at the wrong times and the wrong place when provoked by their ex. Sometimes the mere presence of the ex can be enough to push a person over the edge.
Therefore, the custody exchange, if it can’t be done face to face, can be done from one vehicle to another and the parents remain in their respective vehicles. Only the children get out of the vehicle and move into the other parent’s vehicle. This can help minimize contact and potentially negative interactions that would adversely affect the children. Of course, the children need to be old enough to move independently from one vehicle to the next.
In cases where this is not possible, there are locations associated with some social service agencies that allow for parental exchange, where one parent drops off with a caregiver at the agency and the other parents arrives 15 minutes later to pick up the child. These are sometimes called family resource centers. Check with your local social service agency if you require such a service.

2. Tell them the truth but filter for their age

Do not lie to your child and say that one parent is just moving out for a little while. If you are getting a divorce then you need to tell your children that fact.
However, they do not need to know all the specifics or details. What is usually sufficient is an explanation that although mommy and daddy are no longer going to be married, they still love the kids 100%. Kids need reassurance that it is not their fault and they need to be told they are loved. Not just once, but often, especially following a divorce when the situation can be new, challenging and different from their old life.
If you haven’t told your children that you are getting or are already divorced (yes this happens) then here is a video from Parents.com with tips on telling your children about your divorce:

Click the link for the full article with the video: https://www.lifehack.org/781774/how-to-raise-happy-kids