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>…
CSS Variables
:root{ –white:#fff; –black:#000; } body{ color:var(–black); }
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 );
LabCorp Never Again
Every six months, I need to get blood work done to test for my hypothyroidism. I was a bit nervous about having my blood taken during a pandemic. Needless to say, I had to get the bloodwork done to make…
Saddle Up
I didn’t expect this pandemic. I don’t think the world did. I think it has shocked us all. We have all been forced into our homes and told not to leave. For me, that comes more naturally since I have…
Back to Reality.
{Part 3}
We walk off the plane, not a soul in sight besides our fellow passengers from our flight. We walk through passport control like it was three in the morning. At the baggage claim, we are the only carousel queued up.…
The Journey Home.
{Part 2}
The day before we were to leave, I wake up to what we like to call a “Kaisertag” or “King’s Day” or “Blue Bird,” not a cloud in the sky, and we get to ski my favorite place in the…