Alyson Hannigan played the role of Lily Aldrin throughout all nine seasons of How I Met Your Mother. However, in season 4 of the sitcom, the character briefly disappeared. Lily was a significant character in the series, as she met Ted Mosby (played by Josh Radnor) in college and became friends with her future husband, Marshall Eriksen (played by Jason Segel). They started a family during the course of the show. The absence of Lily in season 4 was intentional, as the recently-married Lily and Marshall realized they had different views on starting and raising a family. Interestingly, during this time, Hannigan was also expanding her own family.
Lily's disappearance in season 4 of How I Met Your Mother began in the 20th episode, "Mobius Designs," and lasted until the 23rd episode, "As Fast as She Can." After giving birth to her daughter in 2009, Hannigan had to take maternity leave and temporarily leave the series. As a result, her character was absent for a few episodes before making a comeback in the last two episodes of season 4. Instead of simply removing Lily from the storyline, the show creatively explained her absence by building on a joke from the opening scene.
How Alyson Hannigan's Pregnancy Was Handled In HIMYM
Lily's absence from the group in "Mosbius Designs" was cleverly explained by her immediate reaction to Barney's dirty joke, which Future Ted claimed was the dirtiest he had ever heard. After avoiding the group for a month, Lily returned in a later episode and admitted that she had found the joke funny upon reflection. However, Barney's offensive comment prompted her to walk away again, although this time she did not disappear from the series. Instead, the show incorporated Alyson Hannigan's real-life pregnancy into the storyline, leading to the birth of Lily and Marshall's first child, Marvin Waitforit Eriksen.
Alyson Hannigan Wasn't The Only HIMYM Cast Member To Start A Family During Season 4
While Lily's screen time in HIMYM was limited due to Hannigan's pregnancy, she wasn't the only one on How I Met Your Mother to experience this. Interestingly, Cobie Smulders, who played Robin, was also pregnant during the show, coinciding with Hannigan's pregnancy. It's not uncommon for pregnant actresses to portray non-pregnant characters, especially in long-running sitcoms like How I Met Your Mother. Filmmakers employ various techniques to conceal pregnancies, such as using loose-fitting clothing and strategically placing large handbags in front of their bellies. Fortunately, when Hannigan became pregnant for the second time, it aligned perfectly with her character's storyline of having a baby in How I Met Your Mother.
How I Met Your Mother Isn't The Only Sitcom To Hide A Pregnancy (Or Two)
While Alyson Hannigan's pregnancy was concealed during HIMYM season 4 due to Lily's limited appearance, it is not uncommon for sitcoms to hide an actor's pregnancy on screen. Seinfeld, for instance, faced this challenge not once but twice. Julia Louis-Dreyfus, who portrays Elaine, was pregnant during both season 3 and season 8 (via The Things). However, unlike Hannigan, Louis-Dreyfus remained actively present throughout most of those seasons. The production team cleverly worked around her pregnancy by styling the actor in oversized clothing and incorporating large bags, maintaining a natural appearance that aligned with Elaine's fashion choices.
In the industry, it is not uncommon for pregnant actresses to face challenges in terms of securing roles. This was the case for Julie Bowen, who portrayed the character of Claire Dunphy in Modern Family. Despite being pregnant with twins during the first episode of the show, Bowen was able to continue her role by strategically positioning herself behind cereal boxes or carrying loads of laundry whenever she appeared on screen. During the direct-to-camera interviews on the sofa, a cushion was cleverly used to hide her pregnancy. Bowen admitted that she had doubts about being hired due to her pregnancy, but the studio executives continued to bring her in and eventually cast her in the role (via People).
Similarly, Courtney Cox, known for her portrayal of Monica Gellar in Friends, faced a similar situation during the final season of the show. Although it was established that Monica and Chandler couldn't conceive, Cox was pregnant in real life. To work around this, the production team utilized various techniques to hide her pregnancy on-screen. For example, when Monica is standing up in season 10, she often held her jacket in front of her stomach or other elements of the set were strategically placed to obscure the view. This approach is not uncommon in the industry, as other shows like Modern Family and Seinfeld have also found ways to conceal their cast members' pregnancies. Another example of this is Alyson Hannigan, who concealed her pregnancy while portraying Lily in How I Met Your Mother during season 4 (via Insider).