Thick yellow toenails are usually caused by a fungal infection called onychomycosis. This can be irritating or painful. It’s less common, but the infection can affect your fingernails as well. Thick ...