I want it so when it is a certain date, such as December 25th (Christmas) it will add the code
Code: Select all
<link rel="stylesheet" href="css/christmas.css" type="text/css" media="screen">Moderator: General Moderators
Code: Select all
<link rel="stylesheet" href="css/christmas.css" type="text/css" media="screen">Code: Select all
<?php
if( date('d m') == '25 12' ) { ?>
<link rel="stylesheet" href="<?php bloginfo('stylesheet_directory'); ?>/css/christmas.css" type="text/css" media="screen" />
<?php } ?>
Code: Select all
$christmas = date('j n');
if ($christmas == '25 12'){
echo 'it\'s Christmas;
}
else {
echo 'it\'s not Christmas';
}