To attach a sling to a sling bar, loop the sling straps over the hooks or attachment points on the bar and ensure they are securely fastened before lifting the individual.