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]-->
How to access/download mp4 files of vimeo videos? Using this URL https://player.vimeo.com/video/169074515/config, where 169074515 is the video ID, using https://player.vimeo.com/video/169074515/config will show all video information. See the sample codes below. Here’s the sample MP4 video URL your can download or use in your custom video player. //View this URL in new tab. Where 169074515 is…
GRAVITY FORM .gform_wrapper { margin: 0!important; max-width: 100%!important; } .gform_wrapper .top_label li.gfield input, .gform_wrapper .top_label li.gfield select, .gform_wrapper .top_label li.gfield textarea { width: 100%!important; padding-right: 2%!important; padding-left: 2%!important; } .gform_wrapper .top_label li.gfield .ginput_left, .gform_wrapper .top_label li.gfield .ginput_right { width: 49%!important; } .gform_wrapper .gform_footer { padding: 0; margin: 10px 0 0 0; } WOOCOMMERCE TABS .woocommerce-tabs…
This code is showing how to add a archive-child/archive-parent classes in Woocommerce product category pages using display_type option. add_filter( 'body_class', function( $classes ){ $object = get_queried_object(); if( get_woocommerce_term_meta( $object->term_id, 'display_type', true ) != 'subcategories' ){ $classes[] = 'archive-child'; }else{ $classes[] = 'archive-parent'; } return $classes; });
How to get Vimeo video thumbnails? You can use the Vimeo thumbnail generator http://video.depone.eu/ or a PHP code below. $video_id= 6271487; $url = 'http://vimeo.com/api/v2/video/'.$video_id.'.php'; $response = unserialize(file_get_contents($url)); $video_title = $response[0]['title']; $lightbox_thumb = $response[0]['thumbnail_large']; // Try to print the $response to see all parameters. // print_r($response);
Code below is to get current user ID. $user_ID = get_current_user_id(); Code below is to get all user meta. $user_meta = array_map( function( $a ){ return $a[0]; }, get_user_meta( $user_ID ) ); echo $user_meta[last_name]; echo $user_meta[description]; Output : Development Lorem ipsum dolor sit amet, nunc arcu urna, id donec. Sample array. Array ( [first_name] =>…
var jq = document.createElement('script'); jq.src = "//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"; document.getElementsByTagName('head')[0].appendChild(jq); // … give time for script to load, then type. jQuery.noConflict();