Children can have their own lawyers, if the parties agree or a Court orders it. Such counsel can help children to have input into the adult decisions that affect them. There are a variety of agencies that appoint such counsel.
Whether children have counsel or not, it is important for parents to remember how much their decisions and behaviour impact their children, and to do their best to consider that impact while making decisions. Experienced counsel can assist with that process.