The Shop
Handmade knit hats made from 100% baby alpaca yarn.
Interested in placing a custom order?
Script Media Type & Preload
Screen Size Specific Load <link media=”only screen and (max-device-width: 480px)” href=”iPhone.css” type=”text/css” rel=”stylesheet” /> <link media=”only screen and (max-device-width: 480px)” href=”iPhone.css” type=”text/css” rel=”stylesheet” /> On Load Event Shown below the onload attribute in the link allows the CSS to be processed when it finishes…
Javascript Flip Box
<script> (function() { jQuery(document).ready(function() { jQuery(‘.flip-container .vc_column-inner’).click(function(){ jQuery(this).toggleClass(“flip”); }); }); })(jQuery); </script> <div class=”flip-box”> <div class=”flip-box-inner”> <div class=”flip-box-front”> <div class=”text”> <div class=”image”> <h3 style=”text-align: center;”>Flip Me</h3> </div> </div> </div> <div class=”flip-box-back”> <div class=”text”> <p>Text here </p> </div> </div> </div> </div>…
WordPress Feature Image
$featured_img_url = get_the_post_thumbnail_url(get_the_ID(),’full’); $image_id = get_post_thumbnail_id();$image_alt = get_post_meta($image_id, ‘_wp_attachment_image_alt’, TRUE);$image_title = get_the_title($image_id);
WordPress Versioning
// remove wp version number from scripts and styles function remove_css_js_version( $src ) { if( strpos( $src, ‘?ver=’ ) ) $src = remove_query_arg( ‘ver’, $src ); return $src; } add_filter( ‘style_loader_src’, ‘remove_css_js_version’, 9999 ); add_filter( ‘script_loader_src’, ‘remove_css_js_version’, 9999 );