This type of Towel Bar is a Cement / Glue on Type.
If 24" is too long, you can cut the plastic bar down to the length you desire