wordpress snippets last updated   : July 14, 2014
we now have 634 snippets

Enable Contact form 7 on specified pages only otherwise wp_deregister_script

wordpress snippet

Like many plugins Contact form 7 adds CSS and Javascript to the head of your HTML document. However like many plugins this is done on every single page regardless if the code is required. Adding this snippet to the functions.php of your wordpress theme will let you enable Contact form 7 only on specified pages.

read more

Display wordpress login form anywhere with wp_login_form

wordpress snippet

You may want to add a login form to customize your wordpress theme and this is something very simple you can do by adding wp_login_form() function to your theme. Just add the first snippet in the location of your theme you wish to display the login form.

read more

Remove role=”search” in get_search_form()

wordpress snippet

Adding this PHP snippet to the functions.php of your wordpress theme will remove the role=”search” from the get_search_form() HTML output. Please note that role is an attribute introduced in XHTML draft for accessibility however does not validate.

read more
jqsnipp.com | we just launched jquery snippets website