Secure floating shelves properly to wall studs using appropriate hardware, and follow the manufacturer's installation instructions. Don't overload shelves beyond their weight capacity.