If you want your floating shelves to be securely mounted on the wall, then you should mount them into a stud. The studs are wood 2×4 beams that make up the framing of your home. They will provide extra support and stability to your floating shelf.