Javascript: Validate Date & Validate future date
Times where you almost need a Javascript date function, in forms.
Following is what i always use, and it seems to work good for me.
It takes care of 30/ 31 days of the month, and it takes care of the February!
And guess what! it even takes care of leap years too!
I have found numerous Javascript/ jQuery snippets which do the job, but they’re lengthy and untidy.
This one thankfuly is small and works amazingly well
The following is the Javascript code hope you like it!
WordPress: How to remove “Comments are closed” php code snippet
Saturday, November 5th, 2011WordPress: How to remove “Comments are closed” php code snippet
I came across a project where I had to make a page without any comment box! And no line saying comments off!
After reading a bunch of tutorials online, i finally got down to hacking myself a small snippet for this,
Objective: Remove the comment box/ “Comments are closed” line from the page, where comments were off!
Code:
1. open the functions.php of your current theme and add the following code at the end:
(more…)
Tags: comment box, comment page, remove comments off, Wordpress
Posted in Wordpress hacks | No Comments »