I have a wall light which I'd like to mount on a wood board for decorative purposes. Below are photos of the light from the front and the back, and then a photo of the light on the board.
I don't have an electrical box yet. This will be going in on existing sheetrock. My plan was to mount the light on the board, feeding the wires from the light through a hole in the board to the wires in the box, and then mount the board to the sheet rock. But in the comments I've been understanding this approach is not code compliant.
Some of the comments have suggested mounting the box in the wood board - that way the wires will be completely enclosed in the space by the light bracket and the electrical box. However I am not sure what this would look like as I assumed the box by code had to be flush with the sheet rock surface.
Would someone be able to post a sketch of the proposed solution?