We investigate an effective control of the laser-induced frequency shift of ultracold cesium molecules formed by photoassociation (PA) in a magnetically levitated crossed dipole trap via an external magnetic field. A series of molecular PA spectra have been measured with increasing the PA laser inte