The Dodgers hoped Gonzalez would be back in time to start the game, but it took longer than expected to receive antibiotics at the hospital.
"It's not bothering me, we just wanted to be proactive," Gonzalez said. "We didn't want [the infection] to get out of hand so we decided to go to the hospital."
Andre Ethier moved up in the batting order to replace Gonzalez in the No. 3 hole and went 1-for-4 with a solo home run.
Jerry Hairston started in place of Gonzalez at first base and hit sixth. He doubled in his first at-bat and played solid defense at first before Gonzalez replaced him.
Gonzalez had started all 22 games at first for the Dodgers this season. Hairston last played first in a Major League game in 2006.
Austin Laymance is an associate reporter for MLB.com. This story was not subject to the approval of Major League Baseball or its clubs.