My front bedroom has a 20" doorway opening with an accordion door. The plastic closure post was attached to the wall and I was always gouging my side on it when going through the door. I removed it and put it in the silverware drawer for safe keeping until I figured a fix. I am thinking about cutting slots in the door edge at the top and bottom and mounting magnetic door closures at the slots and screwing the plates to the wall. Haven't found any closures I like yet that I feel are strong enough to hold the door closed.
I had to flip the bunkhouse door 180 degrees for the same reason. The door was mounted to the cabinet and next to the fridge door and the post was mounted to the edge of the bunkhouse door. It left a 20 inch opening. When I flipped the door I mounted a 1 x 2 oak stud to the edge of the bunks and added a small wood block to the ceiling above the top bunk to support the top of the stud. I attached the door to the new stud and mounted the post next to the fridge door. So now when open the door is behind the bunk house wall and I have a 24 inch wide opening. I also used a new ceiling track I got from the trailer manufacturer that was 36 inches long and cut it to suit since the door needed a longer track.
So far the bunk house door is staying shut, but it doesn't get used a lot. If there is any future problem I was going to add a couple
camming cabinet latches since the parts mounted to the cabinet would not stick out past the fridge door.