“Southern Charm” star Kathryn Dennis was awarded joint custody of the kids she shares with Thomas Ravenel, despite his demands she be stripped of custody.

According to court documents obtained by The Blast, following a hearing a South Carolina judge made a temporary order regarding custody and child support relating to their kids Kensie and Saint.

The judge ruled Dennis and Ravenel will share joint custody with Ravenel being the primary legal custodian.

They were ordered to work together on health issues, education and other important decisions.

View photos

Dennis and Ravenel will have to attend a minimum of three co-parenting sessions with a counselor. Dennis also agreed to cognitive behavior therapy, but Dennis does not have to have supervised visitation with her kids.

View photos

Both were ordered to not consume alcohol or abuse prescription drugs in the presence of the kids, use any illegal drugs with "any individual with whom he/she is romantically involved, or allow them to stay on an overnight basis when they have custody of the children.”

The judge also ensured that neither will talk negatively about the other in front of the kids or on social media. Finally, they cannot allow anyone else to be called “mother” or “father” and are barred from exposing the children to violent or profane language.

Dennis or Ravenel are allowed to request the other be tested for drinking while they have custody of the kids. Neither party will be paid child support for the time being, until a future hearing is held.

The temporary order comes amid Ravenel's attempt to strip Dennis of custody, accusing her of failing a drug test when it came back positive for marijuana. He demanded the court only allow Dennis to have supervised visitation with their two kids Kensie and Saint. Dennis has disputed the test and pointed out her hair test came back clean.

Dennis believes using CBD oil caused a positive test result.

Back in November 2018, Ravenel filed a lawsuit against Bravo and “Southern Charm” producers demanding a judge stop them from broadcasting unaired footage on the show.

Ravenel filed the docs as part of his custody battle with Dennis. She filed for primary custody of the children back in October. Dennis had her custody taken away in 2016 after failing a drug test but was awarded joint custody this year after completing rehab and staying clean.