Function: A web page element that displays in front of and deactivates all other page content. Essentially acting like a pop up that you can fill with additional information. Users simply click on it like a button to open it up.
Number of options: 2
Step 1: Browse your modal options and copy and paste the shortcode
Look through all the options and choose the one that works best. The corresponding shortcode is directly under the modal that it creates. Copy and paste your chosen shortcode into the WordPress Editor you wish it to appear.
*Copy all of the code, including the [ ] on either end.
To change the title that appears at the top of your modal window, replace Enter a title with your desired title. If you don’t want a title, delete the entire title attribute, title=”Enter a title”. Edit the button text that appears on your modal by replacing Button Text with your desired button text.
To change the width of the modal, change the modal attribute to narrow, wide, or default (medium-width). So if you want your modal to appear with a wide window, change width=”narrow” to width=”wide”.
Examples of differing window widths:
narrow
The Queen Herself: Taylor Swift
Taylor Alison Swift (born December 13, 1989) is an American singer-songwriter. Her discography spans multiple genres and her narrative songwriting—often inspired by her personal life—has received critical praise and widespread media coverage. Born in West Reading, Pennsylvania, Swift moved to Nashville, Tennessee, at age 14 to become a country artist. She signed a songwriting deal with Sony/ATV Music Publishing in 2004 and a recording contract with Big Machine Records in 2005. Her 2006 self-titled debut album made her the first female country singer to write or co-write a US platinum-certified album entirely.
Swift’s next albums, Fearless (2008) and Speak Now (2010), explored country pop. The former’s “Love Story” and “You Belong with Me” were the first country songs to respectively top the US pop and all-genre airplay charts. She experimented with rock and electronic styles on Red (2012), which features her first Billboard Hot 100 number-one song, “We Are Never Ever Getting Back Together”, and eschewed her country identity for her synth-pop fifth studio album, 1989 (2014), supported by chart-topping singles “Shake It Off”, “Blank Space”, and “Bad Blood”. Media scrutiny inspired the urban-flavored Reputation (2017) and its number-one song “Look What You Made Me Do”. It made Swift the first act to have four albums each open with a million copies sold.
Departing from Big Machine, Swift signed with Republic Records in 2018 and released her seventh studio album, Lover (2019), followed by the autobiographical documentary Miss Americana (2020). Her input during the COVID-19 pandemic resulted in the indie folk and alternative rock albums, Folklore and Evermore (2020), which incorporated fictional narratives; their lead singles “Cardigan” and “Willow” debuted atop the Hot 100. She began re-recording her Big Machine catalog after a public dispute over the albums’ masters, re-releasing two in 2021—Fearless (Taylor’s Version) and Red (Taylor’s Version). The latter’s “All Too Well (10 Minute Version)” became the longest song to top the Hot 100. Swift has also played supporting roles in films, and directed the music films Folklore: The Long Pond Studio Sessions (2020) and All Too Well: The Short Film (2021).
Having sold over 200 million records globally, Swift is one of the best-selling musicians of all time. Her accolades comprise 11 Grammy Awards—including three Album of the Year wins, 34 American Music Awards—the most for an act, 29 Billboard Music Awards—the most for a woman, and an Emmy Award. She has featured on rankings such as Rolling Stone’s 100 Greatest Songwriters of All Time, Billboard’s Greatest of All Time Artists, the Time 100 and Forbes Celebrity 100. Honored with titles like Artist of the Decade and Woman of the Decade, Swift is an advocate for artists’ rights and women’s empowerment. Her albums are credited with influencing a generation of singer-songwriters.
wide
The Queen Herself: Taylor Swift
Taylor Alison Swift (born December 13, 1989) is an American singer-songwriter. Her discography spans multiple genres and her narrative songwriting—often inspired by her personal life—has received critical praise and widespread media coverage. Born in West Reading, Pennsylvania, Swift moved to Nashville, Tennessee, at age 14 to become a country artist. She signed a songwriting deal with Sony/ATV Music Publishing in 2004 and a recording contract with Big Machine Records in 2005. Her 2006 self-titled debut album made her the first female country singer to write or co-write a US platinum-certified album entirely.
Swift’s next albums, Fearless (2008) and Speak Now (2010), explored country pop. The former’s “Love Story” and “You Belong with Me” were the first country songs to respectively top the US pop and all-genre airplay charts. She experimented with rock and electronic styles on Red (2012), which features her first Billboard Hot 100 number-one song, “We Are Never Ever Getting Back Together”, and eschewed her country identity for her synth-pop fifth studio album, 1989 (2014), supported by chart-topping singles “Shake It Off”, “Blank Space”, and “Bad Blood”. Media scrutiny inspired the urban-flavored Reputation (2017) and its number-one song “Look What You Made Me Do”. It made Swift the first act to have four albums each open with a million copies sold.
Departing from Big Machine, Swift signed with Republic Records in 2018 and released her seventh studio album, Lover (2019), followed by the autobiographical documentary Miss Americana (2020). Her input during the COVID-19 pandemic resulted in the indie folk and alternative rock albums, Folklore and Evermore (2020), which incorporated fictional narratives; their lead singles “Cardigan” and “Willow” debuted atop the Hot 100. She began re-recording her Big Machine catalog after a public dispute over the albums’ masters, re-releasing two in 2021—Fearless (Taylor’s Version) and Red (Taylor’s Version). The latter’s “All Too Well (10 Minute Version)” became the longest song to top the Hot 100. Swift has also played supporting roles in films, and directed the music films Folklore: The Long Pond Studio Sessions (2020) and All Too Well: The Short Film (2021).
Having sold over 200 million records globally, Swift is one of the best-selling musicians of all time. Her accolades comprise 11 Grammy Awards—including three Album of the Year wins, 34 American Music Awards—the most for an act, 29 Billboard Music Awards—the most for a woman, and an Emmy Award. She has featured on rankings such as Rolling Stone’s 100 Greatest Songwriters of All Time, Billboard’s Greatest of All Time Artists, the Time 100 and Forbes Celebrity 100. Honored with titles like Artist of the Decade and Woman of the Decade, Swift is an advocate for artists’ rights and women’s empowerment. Her albums are credited with influencing a generation of singer-songwriters.
default (medium-width)
The Queen Herself: Taylor Swift
Taylor Alison Swift (born December 13, 1989) is an American singer-songwriter. Her discography spans multiple genres and her narrative songwriting—often inspired by her personal life—has received critical praise and widespread media coverage. Born in West Reading, Pennsylvania, Swift moved to Nashville, Tennessee, at age 14 to become a country artist. She signed a songwriting deal with Sony/ATV Music Publishing in 2004 and a recording contract with Big Machine Records in 2005. Her 2006 self-titled debut album made her the first female country singer to write or co-write a US platinum-certified album entirely.
Swift’s next albums, Fearless (2008) and Speak Now (2010), explored country pop. The former’s “Love Story” and “You Belong with Me” were the first country songs to respectively top the US pop and all-genre airplay charts. She experimented with rock and electronic styles on Red (2012), which features her first Billboard Hot 100 number-one song, “We Are Never Ever Getting Back Together”, and eschewed her country identity for her synth-pop fifth studio album, 1989 (2014), supported by chart-topping singles “Shake It Off”, “Blank Space”, and “Bad Blood”. Media scrutiny inspired the urban-flavored Reputation (2017) and its number-one song “Look What You Made Me Do”. It made Swift the first act to have four albums each open with a million copies sold.
Departing from Big Machine, Swift signed with Republic Records in 2018 and released her seventh studio album, Lover (2019), followed by the autobiographical documentary Miss Americana (2020). Her input during the COVID-19 pandemic resulted in the indie folk and alternative rock albums, Folklore and Evermore (2020), which incorporated fictional narratives; their lead singles “Cardigan” and “Willow” debuted atop the Hot 100. She began re-recording her Big Machine catalog after a public dispute over the albums’ masters, re-releasing two in 2021—Fearless (Taylor’s Version) and Red (Taylor’s Version). The latter’s “All Too Well (10 Minute Version)” became the longest song to top the Hot 100. Swift has also played supporting roles in films, and directed the music films Folklore: The Long Pond Studio Sessions (2020) and All Too Well: The Short Film (2021).
Having sold over 200 million records globally, Swift is one of the best-selling musicians of all time. Her accolades comprise 11 Grammy Awards—including three Album of the Year wins, 34 American Music Awards—the most for an act, 29 Billboard Music Awards—the most for a woman, and an Emmy Award. She has featured on rankings such as Rolling Stone’s 100 Greatest Songwriters of All Time, Billboard’s Greatest of All Time Artists, the Time 100 and Forbes Celebrity 100. Honored with titles like Artist of the Decade and Woman of the Decade, Swift is an advocate for artists’ rights and women’s empowerment. Her albums are credited with influencing a generation of singer-songwriters.
*Remember, when changing an attribute to keep the quotation marks. For instance, if you are wanting to change the title to Go Huskies, make sure the code appears as follows: title=”Go Huskies”
You can fill a modal with a variety of content, simply by replacing Insert Content Here with your desired content, including copy, pictures, and videos. Be sure to not delete the end bracket and start bracket of the modal shortcode. Modals can support a variety of shortcodes too, including buttons, block quotes, and cards.
*Just because you can, doesn’t mean you should. Be wary of overloading a modal window and ask yourself if the content would serve better on its own separate page. These are not meant to replace entire pages, just add additional information that doesn’t quite fit on your page or site.
Example of a customized modal:
*This is an overloaded modal to show you some of the things you CAN put in a modal. Do not consider this a best practice. Wikipedia actually does an excellent job of modals, just hover some of their hyperlinked things on a wikipedia page to see them.
A Brief Look into the World of Tolkien and Middle Earth
The Man Himself
Known as the Father of Modern Fantasy Literature
Name: John Ronald Reuel Tolkien aka J.R.R. Tolkien
Occupation: English writer, poet, philologist, and academic
Life: Jan. 3, 1892 – Sept. 2, 1973
Known for creating arguably the best fantasy world of all time. If you disagree, feel free to fight me. I’ll win.
Published: 1977 (by Christopher Tolkien, JRR’s son)
Literally just the nerdiest, most in-depth background to Middle Earth, the languages created, the rings, etc. but specifically focused on the elves of Middle Earth
The Lord of the Rings movies were incredible, particularly the extended editions. (AKA the only way that they should be watched at this point.) They also won 17 Oscars in total.
Here’s the trailer for the first one:
The Hobbit trilogy was meh. But sort of made nerd hearts happy. This scene in particular:
Step 3 (optional): Assign an id to your modal
Attributes are the pieces within the shortcode that you modify to customize your shortcode. For modals, we did this in Step 2 to change the title and width. An optional attribute that you can add is an id. IDs are a way to assign a unique identifier to a specific shortcode or section. Some shortcodes have slightly different behaviors with IDs than others, to view those as well as best practices please visit our best practices for IDs page.