NEW YORK — Neither Pixar nor zombies were enough to topple “How to Train Your Dragon” from the No. 1 slot at North American box offices over the weekend. The Universal Pictures live-action remake remained the top film, bringing in $37 million in ticket sales in its second weekend, despite the sizeable new releases of “Elio” and “28 Years Later,” according to studio estimates Sunday. “How To Train Your Dragon” has rapidly amassed $358.2 million worldwide.

Six years after its last entry, the Dean DeBlois-directed “How To Train Your Dragon” has proven a potent revival of the DreamWorks Animation franchise. A sequel is already in the works for the $150 million production, which remakes the 2010 animated tale about a Viking boy and his dragon.

Pixar’s “Elio” had a particularly tough weekend. The Walt Disney Co. animation studio has often launched some of its biggest titles in June, including “Cars,” “WALL-E” and “Toy Story 4.” But “Elio,” a science fiction adventure about a boy who dreams of meeting aliens, notched a modest $21 million, the lowest opening ever for Pixar.

“Elio,” originally set for release in early 2024, had a bumpy road to the screen. Adrian Molina — co-director of “Coco” — was replaced mid-production by Domee Shi (“Turning Red”) and Madeline Sharafian. Back at Disney’s D23 conference in 2022, America Ferrera appeared to announce her role as Elio’s mother, but the character doesn’t even exist in the revamped film.

Disney and Pixar spent at least $150 million making “Elio,” which didn’t fare any better internationally than it did in North America, bringing in just $14 million from 43 territories.

Pixar stumbled coming out of the pandemic before stabilizing performance with 2023’s “Elemental” ($496.4 million worldwide) and 2024’s “Inside Out 2” ($1.7 billion), which was the company’s biggest box office hit.

“28 Years Later” signaled the return of another, far gorier franchise. Director Danny Boyle reunited with screenwriter Alex Garland to resume their pandemic apocalypse thriller 25 years after “28 Days Later” and 18 years after its sequel, “28 Weeks Later.”

The Sony Pictures release opened with $30 million. That was good enough to give Boyle, the filmmaker of “Slumdog Millionaire” and “Trainspotting,” the biggest opening weekend of his career.