Louis Tomlinson has reached a custody settlement with ex-girlfriend, Briana Jungwirth, but the battle is far from over.

According to TMZ, Louis and his attorney went to court on Friday (Feb. 26) morning and demanded paternal custody of his son, Freddie

Within a matter of hours, the One Direction singer and his ex agreed on a temporary settlement. Per the agreement, Louis will be able to spend several hours a week with his 1-month-old. Unfortunately, overnight visits were not granted to him.

Since both parties are content with this temporary deal, their lawyers will be finalizing the arrangement with something more concrete. Formal documents are being prepared, regarding child support and custody, to add the final touches on Louis and Briana's resolution.

Photo: Getty Images