Post Pic

How to: Wish your reader a merry Christmas

It’s Christmas today! So what about wishing merry Christmas to your readers? In this simple recipe, we’ll see how easy it is to implement a “Merry Christmas” message in your WordPress blog.

To achieve this very simple recipe, simply paste the following code anywhere on your theme. The "Merry Christmas" message will be displayed only on Christmas day.

<?php 
if ((date('m') == 12) && (date('d') == 25)) { ?>
    <h2>Merry Christmas from WpRecipes!</h2>  
<?php } ?>

By the way, I wanted to wish a Merry Christmas to all of you, and saying a big THANK YOU for your support and readership!

Leave a Comment

* Name, Email, Comment are Required

WP Theme of the week

Sponsored Likebox