Apply wood glue to the front edge of the plywood ... Also, in many cases you'll need to insert the shelf covers into the closet or cutout at an angle and then twist and lower them into place ...
High closet shelves, especially for those of us who are on the shorter side, can pose several challenges. Whatever goes up there runs the risk of being forgotten for good, pushed to the back ...