The combination of finely tuned chemical and optical properties of the photoanode material enabled a further enhancement of the dye-sensitized solar cell performance.