{"id":22751,"date":"2014-12-15T18:01:23","date_gmt":"2014-12-15T10:01:23","guid":{"rendered":"https:\/\/www.hongkiat.com\/blog\/?p=22751"},"modified":"2025-04-04T02:01:49","modified_gmt":"2025-04-03T18:01:49","slug":"holiday-notices-wp","status":"publish","type":"post","link":"https:\/\/www.hongkiat.com\/blog\/holiday-notices-wp\/","title":{"rendered":"How To Add Holiday Notices To Your WordPress Site"},"content":{"rendered":"<p>The festivities are upon us and what better way to spread the cheer than <strong>putting up a holiday-themed notice on your site<\/strong>? You might be going on vacation soon, you might want to greet your visitors with a special card, or you might just want to <a target=\"_blank\" href=\"https:\/\/www.hongkiat.com\/blog\/wordpress-featured-content\/\" rel=\"noopener noreferrer\">display a special message<\/a>.<\/p>\n<p>There are lots of <a target=\"_blank\" href=\"https:\/\/www.hongkiat.com\/blog\/christmas-wordpress-plugins\/\" rel=\"noopener noreferrer\">WordPress Christmas plugins<\/a> out there we\u2019ve already looked at, but how about doing it on your own? Do you have a bit of time for a short WordPress project over the holidays? Follow along to learn how to add some Christmas notices to your website via text widget, sticky bar and a counter widget.<\/p>\n<div class=\"ref-block ref-block--post\" id=\"ref-post-1\">\n\t\t\t\t\t<a href=\"https:\/\/www.hongkiat.com\/blog\/40-most-wanted-wordpress-tricks-and-hacks\/\" class=\"ref-block__link\" title=\"Read More: 60+ Most Wanted WordPress Tricks and Hacks (Updated)\" rel=\"bookmark\"><span class=\"screen-reader-text\">60+ Most Wanted WordPress Tricks and Hacks (Updated)<\/span><\/a>\n<div class=\"ref-block__thumbnail img-thumb img-thumb--jumbo\" data-img='{ \"src\" : \"https:\/\/assets.hongkiat.com\/uploads\/thumbs\/250x160\/40-most-wanted-wordpress-tricks-and-hacks.jpg\" }'>\n\t\t\t\t\t\t\t<noscript>\n<style>.no-js #ref-block-post-1474 .ref-block__thumbnail { background-image: url(\"https:\/\/assets.hongkiat.com\/uploads\/thumbs\/250x160\/40-most-wanted-wordpress-tricks-and-hacks.jpg\"); }<\/style>\n<\/noscript>\n\t\t\t\t\t\t<\/div>\n<div class=\"ref-block__summary\">\n<h4 class=\"ref-title\">60+ Most Wanted WordPress Tricks and Hacks (Updated)<\/h4>\n<p class=\"ref-description\">\n\t\t\t\t\t\tHave you ever came across a WordPress blog, saw something you liked, and thought; how they did that,...\t\t\t\t\t\t<span>Read more<\/span><\/p>\n<\/div>\n<\/div>\n<h3>Creating A Text Widget<\/h3>\n<p>There\u2019s no rocket science here, sorry! You can add a quick message and display it in a widget area by going to <strong>Appearance &gt; Widgets<\/strong>, dragging a text widget into a sidebar and entering your message in the box. You can use HTML in there, so you could spice things up with an image if you like.<\/p>\n<p>I agree, this is a <em>bit<\/em> boring but it could be just the right amount of festiveness to add. Many more serious sites such as <a target=\"_blank\" href=\"https:\/\/www.hongkiat.com\/blog\/essential-things-ecommerce-site-should-have\/\" rel=\"noopener noreferrer\">e-Commerce sites<\/a> or <a target=\"_blank\" href=\"https:\/\/www.hongkiat.com\/blog\/creating-professional-portfolio-site\/\" rel=\"noopener noreferrer\">personal portfolios<\/a> would be impacted negatively by dancing Santas but people still appreciate a little holiday cheer nonetheless.<\/p>\n<h3>Sticky Bar<\/h3>\n<p>How about a stick bar, similar to the Quick Notice plugin but one we coded ourselves? We can also make it stick to the top of the page on scroll easily.<\/p>\n<p>The first step is creating a plugin, let me show you how:<\/p>\n<p>In your plugins directory, create a new folder named \u201cmy-sticky-bar\u201d. Inside that folder create a file named \u201cmy-sticky-bar.php\u201d and paste the following content into it:<\/p>\n<pre>&lt;?php \/**\r\n * Plugin Name: My Sticky Bar\r\n * Plugin URI: http:\/\/yourwebsite.com\r\n * Description: My Christmas Project - creating a sticky bar\r\n * Version: 1.0.0\r\n * Author: Your Name\r\n *\/<\/pre>\n<p>Once you save this file you should be able to activate the plugin via the Plugins section in the WordPress admin. It doesn\u2019t do anything yet but we\u2019ll soon fix that!<\/p>\n<p>We need to do two things: use <strong>PHP and HTML to output<\/strong> our message and use <strong>CSS to style<\/strong> it.<\/p>\n<p>In the \u201cmy-sticky-bar.php\u201d file use the following code to add the necessary HTML in the correct place:<\/p>\n<pre>add_action( 'wp_footer', 'my_sticky_bar_display' );\r\nfunction my_sticky_bar_display() {\r\n\techo \"&lt;div id='my-sticky-bar'&gt;Merry Christmas Everyone!&lt;\/div&gt;\";\r\n}<\/pre>\n<p>The first line is a <a target=\"_blank\" href=\"https:\/\/codex.wordpress.org\/Plugin_API\/Hooks\" rel=\"noopener noreferrer\">WordPress hook<\/a>, it tells WordPress to execute the \u201cmy_sticky_bar_display\u201d function just before the end of the body. It\u2019s fine to load the HTML for our bar at the end of the page. It isn\u2019t that important and can be repositioned via CSS.<\/p>\n<p>At this stage you should be able to see your message at the bottom of your site, without any formatting. To add formatting we\u2019ll have to attach a stylesheet by enqueueing it.<\/p>\n<p>In the same file:<\/p>\n<pre>add_action( 'wp_enqueue_scripts', 'my_sticky_bar_styles' );\r\nfunction my_sticky_bar_styles() {\r\n\twp_enqueue_style( 'my-sticky-bar', plugin_dir_url( __FILE__ ) . '\/my-sticky-bar.css');\r\n}<\/pre>\n<p>Enqueueing is a way of adding scripts and styles modularly to WordPress. No need to understand all that though \u2014 if you paste this into the plugin file and create the \u201cmy-sticky-bar.css\u201d file you can start adding your styles. Let\u2019s do that now.<\/p>\n<pre>#my-sticky-bar {\r\n\tposition: absolute;\r\n\ttop: 0px;\r\n\twidth: 100%;\r\n\ttext-align: center;\r\n\tcolor: #fff;\r\n\tbackground: #810400;\r\n\tpadding: 11px 0;\r\n\ttext-transform: uppercase;\r\n\tletter-spacing: 2px;\r\n}<\/pre>\n<p>Best of all, if you replace \u201cabsolute\u201d with \u201cfixed\u201d the message will stick to the top of the window and will follow users around when they scroll.<\/p>\n<figure><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/holiday-notices-wp\/header.jpg\" width=\"1000\" height=\"442\"><\/figure>\n<p>This method is great because you have full control over everything! For example, how about keeping this plugin active all the time but only showing the message on the 25th of December? No problem, just modify the <code>my_sticky_bar_display<\/code> function slightly.<\/p>\n<pre>add_action( 'wp_footer', 'my_sticky_bar_display' );\r\nfunction my_sticky_bar_display() {\r\n\tif( date( 'd' ) == 25 && date( 'm' ) == 12 ) {\r\n\t\techo \"&lt;div id='my-sticky-bar'&gt;Merry Christmas Everyone!&lt;\/div&gt;\";\r\n\t}\r\n}<\/pre>\n<h3>Counter Widget<\/h3>\n<p>We\u2019ve already added some simple text into our text widget, but what about creating a countdown for our users?<\/p>\n<p>The first step is to let WordPress know that we want to create a custom widget. We need to define a function and hook it to <code>widgets_init<\/code>. Create a new plugin, just like before, and in the main file, paste the following:<\/p>\n<pre>\r\nadd_action( 'widgets_init', 'christmas_countdown_widget' );\r\nfunction christmas_countdown_widget() {\r\n    register_widget( 'Christmas_Countdown_Widget' );\r\n}<\/pre>\n<p>We will need to create a class named <code>Christmas_Countdown_Widget<\/code> with a few functions within it. Let\u2019s start by creating a constructor function. Paste everything below into the main plugin file as well.<\/p>\n<pre>\r\nclass Christmas_Countdown_Widget extends WP_Widget {\r\n\r\n    function __construct() {\r\n        parent::__construct(\r\n            'christmas_countdown_widget',\r\n            'Christmas Countdown Widget',\r\n            array( 'description' =&gt; 'A simple Christmas countdown' )\r\n        );\r\n    }\r\n\r\n}<\/pre>\n<p>The constructor function contains some important information that is used to build the widget. It contains the id of the widget (christmas_countdown_widget), the name which will apear in the backend UI (Christmas Countdown Widget) and the description which is also shown.<\/p>\n<p>We can add a function named <code>form()<\/code> which can be used to output some settings for the widget. We won\u2019t be using it here, but keep it in mind for future projects. I\u2019ll just add an empty function for now.<\/p>\n<p>We will use the <code>widget()<\/code> function to output the widget to the front end. Let\u2019s add a simple countdown now. Paste the following code inside the class, below the <code>__construct()<\/code> function. Note that I\u2019m also adding the empty <code>form()<\/code> function now.<\/p>\n<pre>\r\nfunction form() {}\r\n\r\nfunction widget() {\r\n    echo \"Time to Christmas: \" . human_time_diff( time(), mktime( 0, 0, 0, 12, 25, date( 'Y' ) ) );\r\n}<\/pre>\n<p>We use the <code>human_time_diff()<\/code> function offered by WordPress to figure out the time between today and Christmas day. This will display something like: \u201cTime to Christmas: 5 days\u201d.<\/p>\n<p>This is pretty basic, but you can use any sort of images, text, styles and Javascript to make this look awesome. The final and complete code for our widget is as follows:<\/p>\n<pre>\r\nadd_action( 'widgets_init', 'christmas_countdown_widget' );\r\nfunction christmas_countdown_widget() {\r\n    register_widget( 'Christmas_Countdown_Widget' );\r\n}\r\n\r\nclass Christmas_Countdown_Widget extends WP_Widget {\r\n\r\n    function __construct() {\r\n        parent::__construct(\r\n            'christmas_countdown_widget',\r\n            'Christmas Countdown Widget',\r\n            array( 'description' =&gt; 'A simple Christmas countdown' )\r\n        );\r\n    }\r\n\r\n    function form() {}\r\n\r\n    function widget() {\r\n        echo \"Time to Christmas: \" . human_time_diff( time(), mktime( 0, 0, 0, 12, 25, date( 'Y' ) ) );\r\n    }\r\n\r\n\r\n}<\/pre>\n<h3>Happy Holidays!<\/h3>\n<p>I hope I\u2019ve given you a few ideas to add some Christmas cheer to your website! If you don\u2019t celebrate Christmas you can always use these methods and apply them to your own culture.<\/p>\n<p>Eating and celebrating all throughout the holidays? Be sure to read our article on <a target=\"_blank\" href=\"https:\/\/www.hongkiat.com\/blog\/christmas-wordpress-plugins\/\" rel=\"noopener noreferrer\">Christmas WordPress Plugins<\/a> for tons of great ideas and quick access to great holiday stuff!<\/p>","protected":false},"excerpt":{"rendered":"<p>The festivities are upon us and what better way to spread the cheer than putting up a holiday-themed notice on your site? You might be going on vacation soon, you might want to greet your visitors with a special card, or you might just want to display a special message. There are lots of WordPress&hellip;<\/p>\n","protected":false},"author":143,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[49],"tags":[4663,252],"topic":[4520],"class_list":["entry-content","is-maxi"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v22.8 (Yoast SEO v27.6) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>How To Add Holiday Notices To Your WordPress Site - Hongkiat<\/title>\n<meta name=\"description\" content=\"The festivities are upon us and what better way to spread the cheer than putting up a holiday-themed notice on your site? You might be going on vacation\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.hongkiat.com\/blog\/holiday-notices-wp\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How To Add Holiday Notices To Your WordPress Site\" \/>\n<meta property=\"og:description\" content=\"The festivities are upon us and what better way to spread the cheer than putting up a holiday-themed notice on your site? You might be going on vacation\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.hongkiat.com\/blog\/holiday-notices-wp\/\" \/>\n<meta property=\"og:site_name\" content=\"Hongkiat\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/hongkiatcom\" \/>\n<meta property=\"article:published_time\" content=\"2014-12-15T10:01:23+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-04-03T18:01:49+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/assets.hongkiat.com\/uploads\/holiday-notices-wp\/header.jpg\" \/>\n<meta name=\"author\" content=\"Daniel Pataki\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@hongkiat\" \/>\n<meta name=\"twitter:site\" content=\"@hongkiat\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Daniel Pataki\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/holiday-notices-wp\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/holiday-notices-wp\\\/\"},\"author\":{\"name\":\"Daniel Pataki\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/person\\\/76d3b3baacd688e9a0d7bd24553519bc\"},\"headline\":\"How To Add Holiday Notices To Your WordPress Site\",\"datePublished\":\"2014-12-15T10:01:23+00:00\",\"dateModified\":\"2025-04-03T18:01:49+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/holiday-notices-wp\\\/\"},\"wordCount\":917,\"commentCount\":7,\"publisher\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/holiday-notices-wp\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/assets.hongkiat.com\\\/uploads\\\/holiday-notices-wp\\\/header.jpg\",\"keywords\":[\"ad-divi\",\"WordPress Tips\"],\"articleSection\":[\"WordPress\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/holiday-notices-wp\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/holiday-notices-wp\\\/\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/holiday-notices-wp\\\/\",\"name\":\"How To Add Holiday Notices To Your WordPress Site - Hongkiat\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/holiday-notices-wp\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/holiday-notices-wp\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/assets.hongkiat.com\\\/uploads\\\/holiday-notices-wp\\\/header.jpg\",\"datePublished\":\"2014-12-15T10:01:23+00:00\",\"dateModified\":\"2025-04-03T18:01:49+00:00\",\"description\":\"The festivities are upon us and what better way to spread the cheer than putting up a holiday-themed notice on your site? You might be going on vacation\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/holiday-notices-wp\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/holiday-notices-wp\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/holiday-notices-wp\\\/#primaryimage\",\"url\":\"https:\\\/\\\/assets.hongkiat.com\\\/uploads\\\/holiday-notices-wp\\\/header.jpg\",\"contentUrl\":\"https:\\\/\\\/assets.hongkiat.com\\\/uploads\\\/holiday-notices-wp\\\/header.jpg\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/holiday-notices-wp\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How To Add Holiday Notices To Your WordPress Site\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/\",\"name\":\"Hongkiat\",\"description\":\"Tech and Design Tips\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#organization\",\"name\":\"Hongkiat.com\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/wp-content\\\/uploads\\\/hkdc-logo-rect-yoast.jpg\",\"contentUrl\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/wp-content\\\/uploads\\\/hkdc-logo-rect-yoast.jpg\",\"width\":1200,\"height\":799,\"caption\":\"Hongkiat.com\"},\"image\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/hongkiatcom\",\"https:\\\/\\\/x.com\\\/hongkiat\",\"https:\\\/\\\/www.pinterest.com\\\/hongkiat\\\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/person\\\/76d3b3baacd688e9a0d7bd24553519bc\",\"name\":\"Daniel Pataki\",\"description\":\"Daniel is a writer for Hongkiat.com. When not coding or writing, you'll find him playing board games or running with his dog. You can drop him a line on Twitter or visit his personal website.\",\"sameAs\":[\"http:\\\/\\\/danielpataki.com\\\/\"],\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/author\\\/danielpataki\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How To Add Holiday Notices To Your WordPress Site - Hongkiat","description":"The festivities are upon us and what better way to spread the cheer than putting up a holiday-themed notice on your site? You might be going on vacation","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.hongkiat.com\/blog\/holiday-notices-wp\/","og_locale":"en_US","og_type":"article","og_title":"How To Add Holiday Notices To Your WordPress Site","og_description":"The festivities are upon us and what better way to spread the cheer than putting up a holiday-themed notice on your site? You might be going on vacation","og_url":"https:\/\/www.hongkiat.com\/blog\/holiday-notices-wp\/","og_site_name":"Hongkiat","article_publisher":"https:\/\/www.facebook.com\/hongkiatcom","article_published_time":"2014-12-15T10:01:23+00:00","article_modified_time":"2025-04-03T18:01:49+00:00","og_image":[{"url":"https:\/\/assets.hongkiat.com\/uploads\/holiday-notices-wp\/header.jpg","type":"","width":"","height":""}],"author":"Daniel Pataki","twitter_card":"summary_large_image","twitter_creator":"@hongkiat","twitter_site":"@hongkiat","twitter_misc":{"Written by":"Daniel Pataki","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.hongkiat.com\/blog\/holiday-notices-wp\/#article","isPartOf":{"@id":"https:\/\/www.hongkiat.com\/blog\/holiday-notices-wp\/"},"author":{"name":"Daniel Pataki","@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/person\/76d3b3baacd688e9a0d7bd24553519bc"},"headline":"How To Add Holiday Notices To Your WordPress Site","datePublished":"2014-12-15T10:01:23+00:00","dateModified":"2025-04-03T18:01:49+00:00","mainEntityOfPage":{"@id":"https:\/\/www.hongkiat.com\/blog\/holiday-notices-wp\/"},"wordCount":917,"commentCount":7,"publisher":{"@id":"https:\/\/www.hongkiat.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.hongkiat.com\/blog\/holiday-notices-wp\/#primaryimage"},"thumbnailUrl":"https:\/\/assets.hongkiat.com\/uploads\/holiday-notices-wp\/header.jpg","keywords":["ad-divi","WordPress Tips"],"articleSection":["WordPress"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.hongkiat.com\/blog\/holiday-notices-wp\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.hongkiat.com\/blog\/holiday-notices-wp\/","url":"https:\/\/www.hongkiat.com\/blog\/holiday-notices-wp\/","name":"How To Add Holiday Notices To Your WordPress Site - Hongkiat","isPartOf":{"@id":"https:\/\/www.hongkiat.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.hongkiat.com\/blog\/holiday-notices-wp\/#primaryimage"},"image":{"@id":"https:\/\/www.hongkiat.com\/blog\/holiday-notices-wp\/#primaryimage"},"thumbnailUrl":"https:\/\/assets.hongkiat.com\/uploads\/holiday-notices-wp\/header.jpg","datePublished":"2014-12-15T10:01:23+00:00","dateModified":"2025-04-03T18:01:49+00:00","description":"The festivities are upon us and what better way to spread the cheer than putting up a holiday-themed notice on your site? You might be going on vacation","breadcrumb":{"@id":"https:\/\/www.hongkiat.com\/blog\/holiday-notices-wp\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.hongkiat.com\/blog\/holiday-notices-wp\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.hongkiat.com\/blog\/holiday-notices-wp\/#primaryimage","url":"https:\/\/assets.hongkiat.com\/uploads\/holiday-notices-wp\/header.jpg","contentUrl":"https:\/\/assets.hongkiat.com\/uploads\/holiday-notices-wp\/header.jpg"},{"@type":"BreadcrumbList","@id":"https:\/\/www.hongkiat.com\/blog\/holiday-notices-wp\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.hongkiat.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How To Add Holiday Notices To Your WordPress Site"}]},{"@type":"WebSite","@id":"https:\/\/www.hongkiat.com\/blog\/#website","url":"https:\/\/www.hongkiat.com\/blog\/","name":"Hongkiat","description":"Tech and Design Tips","publisher":{"@id":"https:\/\/www.hongkiat.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.hongkiat.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.hongkiat.com\/blog\/#organization","name":"Hongkiat.com","url":"https:\/\/www.hongkiat.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.hongkiat.com\/blog\/wp-content\/uploads\/hkdc-logo-rect-yoast.jpg","contentUrl":"https:\/\/www.hongkiat.com\/blog\/wp-content\/uploads\/hkdc-logo-rect-yoast.jpg","width":1200,"height":799,"caption":"Hongkiat.com"},"image":{"@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/hongkiatcom","https:\/\/x.com\/hongkiat","https:\/\/www.pinterest.com\/hongkiat\/"]},{"@type":"Person","@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/person\/76d3b3baacd688e9a0d7bd24553519bc","name":"Daniel Pataki","description":"Daniel is a writer for Hongkiat.com. When not coding or writing, you'll find him playing board games or running with his dog. You can drop him a line on Twitter or visit his personal website.","sameAs":["http:\/\/danielpataki.com\/"],"url":"https:\/\/www.hongkiat.com\/blog\/author\/danielpataki\/"}]}},"jetpack_featured_media_url":"https:\/\/","jetpack_shortlink":"https:\/\/wp.me\/p4uxU-5UX","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts\/22751","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/users\/143"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/comments?post=22751"}],"version-history":[{"count":3,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts\/22751\/revisions"}],"predecessor-version":[{"id":73720,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts\/22751\/revisions\/73720"}],"wp:attachment":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/media?parent=22751"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/categories?post=22751"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/tags?post=22751"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/topic?post=22751"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}