A high school teacher in New Jersey was suspended on Monday after parents complained that their children’s yearbook pictures or captions had been altered to remove references to President Donald J. Trump.

The teacher, who has not been publicly named, was the yearbook adviser at Wall Township High School near Asbury Park, said Kim Keator, executive secretary to Cheryl Dyer, the superintendent of schools.

In a statement posted online Saturday, Ms. Dyer said two parents had complained to the school district that their children’s clothing appeared to have been digitally altered in their yearbook pictures and that “comments or quotes offered for inclusion in the yearbook were not published.”

“References to and support of President Trump were involved in each of these incidents,” Ms. Dyer wrote. She said the alterations amounted to “censorship and the possible violation of First Amendment rights.”