Simple answer. Have the building desolemnised for weddings. Therefore no wedding can be performed there.
BUT, the church can still hold its own ceremony.
Why not celebrate such a “wedding” in a public restroom?
Male sodomites spend so much time there...I’m sure such a setting would make them feel right at home.