Messy ending and hopeful beginings

Bu

my SO has a son with his ex. He wants to gain custody of his son, but he doesn't know where or how to start that prosses. i want nothing more then for him to he happy and his ex wont let him have anything to do with his son but there was nothing legally decided. anyone have any advice.