{"id":114238,"date":"2021-01-20T14:07:00","date_gmt":"2021-01-20T20:07:00","guid":{"rendered":"https:\/\/wpengine.com\/?post_type=resource&#038;p=114238"},"modified":"2024-01-11T13:55:31","modified_gmt":"2024-01-11T19:55:31","slug":"wordpress-alert-box","status":"publish","type":"resource","link":"https:\/\/wpengine.com\/case-studies\/resources\/wordpress-alert-box\/","title":{"rendered":"How to Create Alert Boxes in WordPress"},"content":{"rendered":"\n<p>If your website gets a solid number of visitors, but signups or conversions are lower than you\u2019d like, you\u2019re not alone. There are tons of resources available to help <a href=\"https:\/\/wpengine.com\/resources\/how-much-traffic-can-your-website-handle\/\" target=\"_blank\" rel=\"noreferrer noopener\">increase your traffic<\/a>\u2014but getting that traffic to take the right actions on your site is another story.\u00a0\u00a0<\/p>\n\n\n\n<p>One possible solution is using an alert box. This is a powerful and simple tool that can dramatically increase conversions on your WordPress site. What\u2019s more, it\u2019s very easy to create and customize this feature.<\/p>\n\n\n\n<p>In this article, we\u2019ll cover what an alert box is and why you should use one. Then we\u2019ll show you how to make your own alert box in WordPress. Let\u2019s dive in!<\/p>\n\n\n\n\n\n<h2 class=\"wp-block-heading\">What Is an Alert Message?<\/h2>\n\n\n\n<p>An alert message is exactly what it sounds like. It\u2019s an alert that appears on a website to notify visitors that something has occurred. You may know this feature better as a \u201cpopup\u201d or \u201calert box.\u201d<\/p>\n\n\n\n<p>Alert boxes in WordPress usually take one of two forms. You may see a popup that appears on the screen, or a bar that runs along the top of your page (sometimes called a \u201chello bar\u201d).<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Why Create an Alert Message?<\/h2>\n\n\n\n<p>Alert messages are typically used to notify (or alert) users of something important happening on your site. For example, you might use a WordPress alert box to let visitors know about a special sale on a product they might not see otherwise, or of a series of <a href=\"https:\/\/wpengine.com\/resources\/add-featured-posts-to-wordpress\/\" target=\"_blank\" rel=\"noreferrer noopener\">featured posts<\/a>.<\/p>\n\n\n\n<p>Another very common use for this feature is to capture visitor email addresses. Many WordPress alert box plugins can be set to pop up when a user moves their cursor away from the site (to close the tab or press the back button, for example).<\/p>\n\n\n\n<p>These \u201clast-minute\u201d alerts can be a great way to capture the contact details of visitors before they leave, potentially resulting in a <a href=\"https:\/\/wpengine.com\/resources\/conversion-tracking\/\" target=\"_blank\" rel=\"noreferrer noopener\">conversion down the road<\/a>. These alerts can be extremely effective\u2014the best-performing popups have a conversion rate of <a href=\"https:\/\/sumo.com\/stories\/pop-up-statistics\" target=\"_blank\" rel=\"noreferrer noopener\">over 9 percent<\/a>. In other words, they\u2019re well worth the effort to implement.\u00a0<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Creating an Alert Message With a Plugin<\/h2>\n\n\n\n<p>Thanks to WordPress plugins, creating your own alert boxes is simple. We\u2019ll walk you through every step using the powerful (and free) <a href=\"https:\/\/wordpress.org\/plugins\/popup-maker\/\">Popup Maker plugin<\/a>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Step 1: Download a Plugin (Such as Popup Maker)<\/h3>\n\n\n\n<p>The first thing you\u2019ll need to do is pick up a dedicated plugin. As we mentioned above, the free Popup Maker plugin is well-reviewed and a solid choice.<\/p>\n\n\n\n<p>To install this tool, head to your WordPress dashboard and navigate to <em>Plugins &gt; Add New<\/em>. Search for \u201cpopup maker,\u201d and it should be the first entry:<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter\"><img decoding=\"async\" src=\"https:\/\/lh3.googleusercontent.com\/oegv8RR3zFRy7z4SFbWg1Au75U1M3iypW9lLgGDOeDgkg1T0_5oQ_ZJFYXWPZcxTaN9xf6FYm4LB8Dl4JqRSMHsSRuDI2JwMCFh2nWiCzlTPU1LOkj9yrhPzThLDib9j6DEYviib\" alt=\"Add pop up maker plugin in WordPress. WordPress Alert Message\" \/><\/figure>\n\n\n\n<p>Then click on <em>Install Now<\/em>. When it\u2019s finished installing, don\u2019t forget to activate the plugin by selecting <em>Activate<\/em>. Note that while Popup Maker itself is free, some features require a <a href=\"https:\/\/wppopupmaker.com\/pricing\/\" target=\"_blank\" rel=\"noreferrer noopener\">premium plan<\/a> to use.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Step 2: Create a Popup<\/h3>\n\n\n\n<p>With Popup Maker installed, you should see a new entry in your WordPress sidebar that\u2019s named after the plugin<em>.<\/em> Click it to open up a list of all your popups. At first it will be empty, but you\u2019re about to remedy that.<\/p>\n\n\n\n<p>To create a popup, click on <em>Add New Popup <\/em>at the top of the screen. This will open the WordPress editor:<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter\"><img decoding=\"async\" src=\"https:\/\/lh4.googleusercontent.com\/lzmf7_MWy-LVbukAcalAmIQCnCm2tBBUMGe3WQLB0tzaKiT9cyLn_SgArWdBkHNh7rn42hMLwPGuO91uuWNpqenpS37uwLi28PNtQBKL5MV-OOeVKCaXv1pWkVXQ42Xb3Yg8Dwsr\" alt=\"Add new popup in WordPress. WordPress Alert Message\" \/><\/figure>\n\n\n\n<p>When you visit this screen, a tutorial will appear showing you how to create a popup. The first thing you\u2019re asked to do is enter a name, so you can identify the popup later.<\/p>\n\n\n\n<p>After that, you can enter an optional title that will appear within the popup as a headline. In the main editor field, you can also enter the content you want to display in the popup. If you just want to create a simple contact form, you can also use a predefined shortcode.<\/p>\n\n\n\n<p>These shortcodes are found under a new button with the Popup Maker logo in the toolbar:<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter\"><img decoding=\"async\" src=\"https:\/\/lh3.googleusercontent.com\/P27Jkmeoqe9DRt44kLbfbfCaTr0HWSKpWC6cU3-AL0f-cr0-pJh-JL7N0B-WugqxQ9UkUbo5pAsERConkzzldiChUReN8C064LOczNRje8x92_zUYlZK8q5TNcol6PEJ3OWbnorX\" alt=\"Popup maker shortcodes WordPress. WordPress Alert Message\" \/><\/figure>\n\n\n\n<p>Click on <em>Subscription Form<\/em> to insert a basic contact form for capturing emails. The text for the fields and privacy disclaimer can be customized by clicking on the form and selecting the edit button. There are a number of options for styles and layout, in addition to text.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Step 3: Configure Triggers for Your Popup&nbsp;<\/h3>\n\n\n\n<p>With your popup form created, the next step is to configure its triggers. These determine when the alert box appears.&nbsp;<\/p>\n\n\n\n<p>On the popup editor screen, scroll down to <em>Popup Settings<\/em> and select <em>Triggers <\/em>from the list. Then click on <em>Add New Trigger<\/em>:<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter\"><img decoding=\"async\" src=\"https:\/\/lh5.googleusercontent.com\/W9twYQg9pKg176L63-pGDhvHKVjsngIfx8xpCntyjfBmsP-spSHrDGL5OORnOokgsEIbU1rPDwl8nm2qsU1foQ-VUNf9wCBNL6EeZbjvnPNdB8UqJRzeDmUWA5w5Jp6JeiQtFP3B\" alt=\"Add a new pop up trigger in WordPress. WordPress Alert Message\" \/><\/figure>\n\n\n\n<p>The base Popup Maker plugin contains three options here: <em>Click Open<\/em>, <em>Time Delay\/Auto Open<\/em>, and <em>Form Submission<\/em>. You can also select <em>Exit Intent<\/em> as a trigger if you\u2019re on a premium plan\u2014this is the option to use if you want the popup to appear when a user tries to leave your site.<\/p>\n\n\n\n<p>You can also adjust which pages the alert box appears on under the <em>Targeting<\/em> tab. Make sure to customize this setting if you want to exclude certain pages or device types from seeing the alert.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Step 4: Style Your Alert Box<\/h3>\n\n\n\n<p>Finally, you can change the appearance of your new alert box to better match your site\u2019s theme. In the <em>Popup Settings<\/em> area, select <em>Display<\/em>. There, you can change where the popup appears on the screen (including as a top bar), set its size and position, and choose from one of several available themes:<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter\"><img decoding=\"async\" src=\"https:\/\/lh4.googleusercontent.com\/kRqYfJ1j54-2IMtFvngsFjE8NEnJvJUrFEIHgQ82Xwi3j-q_99pidY_PFCRr-oxcqfbsK93_FKrafSn2WXzbESyDM8VkbwBmW1s5uw8SXF9uURM1z6psh9qLlsuSXn3FfdOSmuKF\" alt=\"Custom style alert box WordPress. WordPress Alert Message\" \/><\/figure>\n\n\n\n<p>When you\u2019re finished, make sure to select the <em>Publish<\/em> button to save your changes and activate your popup.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Creating an Alert Message Without a Plugin<\/h2>\n\n\n\n<p>If you prefer to not use a plugin, you can also create an alert box yourself using some code and a little elbow grease. You\u2019ll need to edit your <em>header.php<\/em> file and add some CSS to your site. For this example, we\u2019ll create an alert bar at the top of the page.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Step 1: Edit Your header.php File<\/h3>\n\n\n\n<p>The first thing you\u2019ll need to do is add some code to your <em>header.php<\/em> file. This can be accessed using the WordPress Theme Editor. From your dashboard, navigate to <em>Appearance &gt; Theme Editor<\/em>. Then select <em>Theme Header (header.php)<\/em> from the sidebar on the right:<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter\"><img decoding=\"async\" src=\"https:\/\/lh3.googleusercontent.com\/4azD-MGviemEpXYMvWFbmO_yLdeKFlHRMdDa5LJAnu1syk_XdurAge5oRamQ8FsDff5DYYmIzvVolZDeuiawyuEXzCiQssZERDqcaiB-6PjslxYTLDIDO08g-J7-XyrLxp7HCYk4\" alt=\"How to add code to header PHP file in WordPress. WordPress Alert Message\" \/><\/figure>\n\n\n\n<p>Copy and paste the following code into the file at the end of the <em>&lt;head&gt; <\/em>section:<\/p>\n\n\n\n<p><code>&lt;div class=\"alertbar\"&gt;All items 20% off!&lt;\/div&gt;<\/code><\/p>\n\n\n\n<p>Here\u2019s what the file should look like after this addition:<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter\"><img decoding=\"async\" src=\"https:\/\/lh5.googleusercontent.com\/xDKU24n76-KUHoe_NaUqM0rXn90Tu3kudqJkKtJY5tA1YR8Q2M0dfsY-M4_NZWL0Pc8eMcNNSGQSloVkT8F-6H8DoBCVql8ruXNc64a75Vu6yuLr9yW7S0yhNzq0A9n5p8Immyec\" alt=\"Example of PHP code addition in WordPress. WordPress Alert Message\" \/><\/figure>\n\n\n\n<p>This will display the message \u201cAll items 20% off!\u201d in your alert bar. You can customize the text however you like.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Step 2: Add Custom CSS<\/h3>\n\n\n\n<p>Finally, you\u2019ll need to use <a href=\"https:\/\/www.w3schools.com\/whatis\/whatis_css.asp\" target=\"_blank\" rel=\"noreferrer noopener\">Cascading Style Sheets (CSS)<\/a> to style your alert. You can add CSS using the WordPress Customizer.&nbsp;<\/p>\n\n\n\n<p>To do so, head to your WordPress dashboard and navigate to <em>Appearance &gt; Customize. <\/em>This will open your site in the Customizer. In the sidebar, select <em>Additional CSS<\/em>. This opens a code box where you can enter custom CSS.<\/p>\n\n\n\n<p>Paste the following code into the text field:<\/p>\n\n\n\n<p><code>.alertbar {&nbsp;<\/code><\/p>\n\n\n\n<p><code>&nbsp;&nbsp;&nbsp;&nbsp;background-color: #A9A9A9;&nbsp;<\/code><\/p>\n\n\n\n<p><code>&nbsp;&nbsp;&nbsp;&nbsp;color: #FFFFFF;&nbsp;<\/code><\/p>\n\n\n\n<p><code>&nbsp;&nbsp;&nbsp;&nbsp;display: block;&nbsp;<\/code><\/p>\n\n\n\n<p><code>&nbsp;&nbsp;&nbsp;&nbsp;line-height: 45px;<\/code><\/p>\n\n\n\n<p><code>&nbsp;&nbsp;&nbsp;&nbsp;height: 50px;&nbsp;<\/code><\/p>\n\n\n\n<p><code>&nbsp;&nbsp;&nbsp;&nbsp;position: relative;&nbsp;<\/code><\/p>\n\n\n\n<p><code>&nbsp;&nbsp;&nbsp;&nbsp;text-align: center;&nbsp;<\/code><\/p>\n\n\n\n<p><code>&nbsp;&nbsp;&nbsp;&nbsp;text-decoration: none;&nbsp;<\/code><\/p>\n\n\n\n<p><code>&nbsp;&nbsp;&nbsp;&nbsp;top: 0px;&nbsp;<\/code><\/p>\n\n\n\n<p><code>&nbsp;&nbsp;&nbsp;&nbsp;width: 100%;<\/code><\/p>\n\n\n\n<p><code>&nbsp;&nbsp;&nbsp;&nbsp;z-index: 100;<\/code><\/p>\n\n\n\n<p><code>}<\/code><\/p>\n\n\n\n<p>Here\u2019s what the alert looks like:<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter\"><img decoding=\"async\" src=\"https:\/\/lh6.googleusercontent.com\/RNSQXoVpqq1LkEcLQTUTf8eY9T_EDdRXBC9oX2OUyUVLGnCThcvzoxbGypGeBDztWr7JXulY3QnPi0ny01WY3I0tWhGFicsFTYg9H5taeKy7MXXV5nRvxWtlPeqQOnC5wH1jrz7H\" alt=\"Alert box demo. WordPress Alert Message\" \/><\/figure>\n\n\n\n<p>The above code creates a dark grey bar with white text\u2014but you can tweak the colors and size however you like to match your theme. When you\u2019re done, click on <em>Publish<\/em> to save your changes.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Enhance Your Site With WP Engine<\/h2>\n\n\n\n<p>Whether you\u2019re looking to increase email signups or need a simple way to notify visitors about special offers, an alert box is an elegant and effective solution. Implementing one on your WordPress site can dramatically increase your conversion rate.&nbsp;<\/p>\n\n\n\n<p>You can implement an alert box with a WordPress plugin such as <a href=\"https:\/\/wordpress.org\/plugins\/popup-maker\/\" target=\"_blank\" rel=\"noreferrer noopener\">Popup Maker<\/a>. You can also code one yourself relatively easily with a bit of CSS. Either way, you\u2019ll get a customizable alert that\u2019s designed to increase signups and conversions.<\/p>\n\n\n\n<p>If you want to enhance your site even further, learn more about our industry leading <a href=\"https:\/\/wpengine.com\/wordpress-hosting\/\" target=\"_blank\" rel=\"noreferrer noopener\">WordPress hosting<\/a> and make sure to check out our <a href=\"https:\/\/wpengine.com\/enterprise\/\">hosting plans<\/a>!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If your website gets a solid number of visitors, but signups or conversions are lower than you\u2019d like, you\u2019re not alone. There are tons of resources available to help increase your traffic\u2014but getting that traffic to take the right actions on your site is another story.\u00a0\u00a0 One possible solution is using an alert box. This<span class=\"tile__ellipses\">&hellip;<\/span><span class=\"tile__ellipses--animated\"><\/span><\/p>\n","protected":false},"author":297,"featured_media":114239,"template":"","resource-topic":[],"resource-role":[896,903],"resource-type":[916],"class_list":["post-114238","resource","type-resource","status-publish","has-post-thumbnail","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.9 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Make a WordPress Alert Message<\/title>\n<meta name=\"description\" content=\"An alert box widget can be a great way to give users notifications on your WordPress site. Learn how to make your own alert box with WP Engine.\" \/>\n<meta name=\"robots\" content=\"noindex, follow\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Make a WordPress Alert Message\" \/>\n<meta property=\"og:description\" content=\"An alert box widget can be a great way to give users notifications on your WordPress site. Learn how to make your own alert box with WP Engine.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/wpengine.com\/case-studies\/resources\/wordpress-alert-box\/\" \/>\n<meta property=\"og:site_name\" content=\"WP Engine\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/wpengine\" \/>\n<meta property=\"article:modified_time\" content=\"2024-01-11T19:55:31+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/wpengine.com\/case-studies\/wp-content\/uploads\/2021\/01\/shutterstock_1150078133-1.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1100\" \/>\n\t<meta property=\"og:image:height\" content=\"500\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:title\" content=\"How to Make a WordPress Alert Message\" \/>\n<meta name=\"twitter:description\" content=\"An alert box widget can be a great way to give users notifications on your WordPress site. Learn how to make your own alert box with WP Engine.\" \/>\n<meta name=\"twitter:image\" content=\"https:\/\/wpengine.com\/case-studies\/wp-content\/uploads\/2021\/01\/shutterstock_1150078133-1.jpg\" \/>\n<meta name=\"twitter:site\" content=\"@wpengine\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"8 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/wpengine.com\/case-studies\/resources\/wordpress-alert-box\/\",\"url\":\"https:\/\/wpengine.com\/case-studies\/resources\/wordpress-alert-box\/\",\"name\":\"How to Make a WordPress Alert Message\",\"isPartOf\":{\"@id\":\"https:\/\/wpengine.com\/case-studies\/#website\"},\"datePublished\":\"2021-01-20T20:07:00+00:00\",\"dateModified\":\"2024-01-11T19:55:31+00:00\",\"description\":\"An alert box widget can be a great way to give users notifications on your WordPress site. Learn how to make your own alert box with WP Engine.\",\"breadcrumb\":{\"@id\":\"https:\/\/wpengine.com\/case-studies\/resources\/wordpress-alert-box\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/wpengine.com\/case-studies\/resources\/wordpress-alert-box\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/wpengine.com\/case-studies\/resources\/wordpress-alert-box\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/wpengine.com\/case-studies\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Resources\",\"item\":\"https:\/\/wpengine.com\/case-studies\/resources\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"How to Create Alert Boxes in WordPress\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/wpengine.com\/case-studies\/#website\",\"url\":\"https:\/\/wpengine.com\/case-studies\/\",\"name\":\"WP Engine\",\"description\":\"Managed Hosting for WordPress\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/wpengine.com\/case-studies\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/wpengine.com\/case-studies\/#\/schema\/person\/3a22232b01de39dcf588fb8e421c0521\",\"name\":\"Erin Myers\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/wpengine.com\/case-studies\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/cd881e115bc28c81642ec61752db9981ece9ee8b4c81498a9b6276b9cdcaf5e6?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/cd881e115bc28c81642ec61752db9981ece9ee8b4c81498a9b6276b9cdcaf5e6?s=96&d=mm&r=g\",\"caption\":\"Erin Myers\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Make a WordPress Alert Message","description":"An alert box widget can be a great way to give users notifications on your WordPress site. Learn how to make your own alert box with WP Engine.","robots":{"index":"noindex","follow":"follow"},"og_locale":"en_US","og_type":"article","og_title":"How to Make a WordPress Alert Message","og_description":"An alert box widget can be a great way to give users notifications on your WordPress site. Learn how to make your own alert box with WP Engine.","og_url":"https:\/\/wpengine.com\/case-studies\/resources\/wordpress-alert-box\/","og_site_name":"WP Engine","article_publisher":"https:\/\/www.facebook.com\/wpengine","article_modified_time":"2024-01-11T19:55:31+00:00","og_image":[{"width":1100,"height":500,"url":"https:\/\/wpengine.com\/case-studies\/wp-content\/uploads\/2021\/01\/shutterstock_1150078133-1.jpg","type":"image\/jpeg"}],"twitter_card":"summary_large_image","twitter_title":"How to Make a WordPress Alert Message","twitter_description":"An alert box widget can be a great way to give users notifications on your WordPress site. Learn how to make your own alert box with WP Engine.","twitter_image":"https:\/\/wpengine.com\/case-studies\/wp-content\/uploads\/2021\/01\/shutterstock_1150078133-1.jpg","twitter_site":"@wpengine","twitter_misc":{"Est. reading time":"8 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/wpengine.com\/case-studies\/resources\/wordpress-alert-box\/","url":"https:\/\/wpengine.com\/case-studies\/resources\/wordpress-alert-box\/","name":"How to Make a WordPress Alert Message","isPartOf":{"@id":"https:\/\/wpengine.com\/case-studies\/#website"},"datePublished":"2021-01-20T20:07:00+00:00","dateModified":"2024-01-11T19:55:31+00:00","description":"An alert box widget can be a great way to give users notifications on your WordPress site. Learn how to make your own alert box with WP Engine.","breadcrumb":{"@id":"https:\/\/wpengine.com\/case-studies\/resources\/wordpress-alert-box\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/wpengine.com\/case-studies\/resources\/wordpress-alert-box\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/wpengine.com\/case-studies\/resources\/wordpress-alert-box\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/wpengine.com\/case-studies\/"},{"@type":"ListItem","position":2,"name":"Resources","item":"https:\/\/wpengine.com\/case-studies\/resources\/"},{"@type":"ListItem","position":3,"name":"How to Create Alert Boxes in WordPress"}]},{"@type":"WebSite","@id":"https:\/\/wpengine.com\/case-studies\/#website","url":"https:\/\/wpengine.com\/case-studies\/","name":"WP Engine","description":"Managed Hosting for WordPress","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/wpengine.com\/case-studies\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/wpengine.com\/case-studies\/#\/schema\/person\/3a22232b01de39dcf588fb8e421c0521","name":"Erin Myers","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/wpengine.com\/case-studies\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/cd881e115bc28c81642ec61752db9981ece9ee8b4c81498a9b6276b9cdcaf5e6?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/cd881e115bc28c81642ec61752db9981ece9ee8b4c81498a9b6276b9cdcaf5e6?s=96&d=mm&r=g","caption":"Erin Myers"}}]}},"acf":[],"grid_image_url":"https:\/\/wpengine.com\/case-studies\/wp-content\/uploads\/2021\/01\/shutterstock_1150078133-2.jpg","media-type":{"term_id":916,"name":"Article","slug":"article"},"role":"<strong>Roles:<\/strong> Developer, Marketer","topic":false,"_links":{"self":[{"href":"https:\/\/wpengine.com\/case-studies\/wp-json\/wp\/v2\/resource\/114238","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wpengine.com\/case-studies\/wp-json\/wp\/v2\/resource"}],"about":[{"href":"https:\/\/wpengine.com\/case-studies\/wp-json\/wp\/v2\/types\/resource"}],"author":[{"embeddable":true,"href":"https:\/\/wpengine.com\/case-studies\/wp-json\/wp\/v2\/users\/297"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/wpengine.com\/case-studies\/wp-json\/wp\/v2\/media\/114239"}],"wp:attachment":[{"href":"https:\/\/wpengine.com\/case-studies\/wp-json\/wp\/v2\/media?parent=114238"}],"wp:term":[{"taxonomy":"resource-topic","embeddable":true,"href":"https:\/\/wpengine.com\/case-studies\/wp-json\/wp\/v2\/resource-topic?post=114238"},{"taxonomy":"resource-role","embeddable":true,"href":"https:\/\/wpengine.com\/case-studies\/wp-json\/wp\/v2\/resource-role?post=114238"},{"taxonomy":"resource-type","embeddable":true,"href":"https:\/\/wpengine.com\/case-studies\/wp-json\/wp\/v2\/resource-type?post=114238"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}