I recently had need of a site layout with the following features a header 3 fluid columns 100% or full height columns a sticky footer correct source order of columns IE8 compatible The only existing solutions I could find either used table based layouts or background image techniques to get the columns to display at […]
This function includes the script if it hasn’t already been included, and safely handles dependencies (scripts that must be loaded before the script). <?php wp_enqueue_script( $handle, $src, $deps, $ver, $in_footer );?> $handle is the name of the script in lowercase. $src (optional) URL to the script. This parameter is only required when WordPress does not […]
Loading the jQuery that comes with WordPress Add this PHP code to header.php before wp_head() <?php wp_enqueue_script( ‘jquery’ ); ?> What not to do – Using a Google served jQuery instead Add this PHP code to functions.php but make sure it’s the latest version. <?php function my_scripts_method() { wp_deregister_script( ‘jquery’ ); wp_register_script( ‘jquery’, ‘http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js’); wp_enqueue_script( […]