Contact Form 7 Redirect

add_action( ‘wp_footer’, ‘mycustom_wp_footer’ ); function mycustom_wp_footer() { ?> <script type=”text/javascript”> document.addEventListener( ‘wpcf7mailsent’, function( event ) { if ( ‘4423’ ==...

WordPress search form

<form method=”get” action=”<?php echo home_url(); ?>/”> <input name=”s” type=”text” placeholder=”Type your keywords”> <input type=”submit” value=”Search”>...

Leverage browser caching & Enable Compression

Copy the code snippets and paste it inside your .htaccess file. # Enable Compression <IfModule mod_deflate.c> AddOutputFilterByType DEFLATE application/javascript AddOutputFilterByType DEFLATE application/rss+xml AddOutputFilterByType DEFLATE...

Register widget in WordPress

function my_custom_theme_widgets() { register_sidebar( array( ‘name’ => ‘My Widget’, ‘id’ => ‘widget_id’, ‘before_widget’ => ‘<div class=”widget_div”>’,...

WP Plugin QuickStart Pack

//Plugin information /* Plugin Name: Your plugin Name Plugin URI: http://example.com/pluginsurl Description: Given your plugin description here. Author: Author Name Version: 1.0 Author URI: http://example.com/ */ //The latest jquery need to use every plugin function...