HTML5 .js google hosted
html5shiv.googlecode.com/svn/trunk/html5.js
or simply copy the code below and paste it into your header.php
<!--[if lt IE 9]><script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
Header hooks and filters Remove site description add_action( 'genesis_site_description', 'genesis_seo_site_description' ); Custom Logo structure add_filter( 'genesis_seo_title', 'genesis_custom_seo_title', 10, 3 ); function genesis_custom_seo_title( $title ) { if( get_header_image() ){ $title .= '<div class="logo-wrap">'; $title .= '<a class="logo-image" href="'.get_bloginfo('url').'" title="'.get_bloginfo('name').'">'; $title .= '<img src="'.get_header_image().'" alt="'.get_bloginfo('name').'"/>'; $title .= '</a>'; $title .= '</div>'; }else{ $title = '<h1 class="site-title">'.get_bloginfo('name').'</h1>'; }…
Add BCC email in Woocommerce new order via product post meta? How to do that? Create a custom field with a meta_key of ’email_address’ and put the codes to your functions.php add_filter( 'woocommerce_email_headers', 'mycustom_headers_filter_function', 10, 2 ); function mycustom_headers_filter_function( $headers, $object ) { if( $object == 'new_order' ){ global $woocommerce; $cart = $woocommerce->cart; if(!empty($cart)){ $group…
How to get current post/page/custom post type post data (ID, Post Name, Post Title, Etc.) in init action? If you have something to get in your current page and don’t know how to get the current post ID, post name, post type, post content, and many more, the codes below is the solution. Using init…
How to solve Jquery on click inside or outside the div element ? Just copy the codes below to your script. $( document ).click( function( e ){ var mde = $( '.my-div-element' ); if( ! mde.is( e.target ) && mde.has( e.target ).length === 0 && mde.length ){ // I'm clicking outside of my div element…
Demo slidetoggle Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor.Aenean massa. Lconsectetuer ipsum dolor sit amet, adipiscing elitorem. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies nec, pellentesquem. HTML mark up <div id="faq"> <h6>Lorem…
To replace the default WordPress jquery ( http://192.185.73.118/~anthonycarbon/wp-includes/js/jquery/jquery.js ) library with the Google hosted jquery library, copy the below codes and paste it into your functions.php file. The7 WordPress theme dequeue script. Example is `dt-above-fold`. add_action( 'wp_enqueue_scripts', 'my_deregister_javascript', 20 ); add_action( 'wp_print_scripts', 'wp_print_scripts_deregister', 100 ); function my_deregister_javascript() { if ( ! is_admin() && isset( $_GET['wp_print_scripts']…