This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <head> | |
| <!-- CSS | |
| ================================================== --> | |
| <style> | |
| *, *:before, *:after { | |
| -webkit-box-sizing: border-box; | |
| -moz-box-sizing: border-box; | |
| box-sizing: border-box; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //Scroll to anchor on new page load | |
| $(document).ready(function() { | |
| //This a page anchor link? | |
| if (window.location.hash) { | |
| //Then, slow your roll son, load then scroll | |
| setTimeout(function() { | |
| $('html, body').scrollTop(0).show(); | |
| $('html, body').animate({ | |
| //how about a touch of offset, cause I'm rockin' a fixed nav | |
| scrollTop: $(window.location.hash).offset().top-50 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /*-----------------------------------------------------------------------------------*/ | |
| /* Clean them stylesheet <link> tags | |
| /*-----------------------------------------------------------------------------------*/ | |
| function clean_style_tag($input) { | |
| preg_match_all("!<link rel='stylesheet'\s?(id='[^']+')?\s+href='(.*)' type='text/css' media='(.*)' />!", $input, $matches); | |
| // Display media if it's print | |
| $media = $matches[3][0] === 'print' ? ' media="print"' : ''; | |
| return '<link rel="stylesheet" href="' . $matches[2][0] . '"' . $media . '>' . "\n"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <div id="loading_animation"> | |
| <div class="outside_ring"></div> | |
| <div class="middle_ring"></div> | |
| <div class="inner_ring"></div> | |
| <span id="animation_message">Slow Your Roll</span> | |
| </div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function catch_that_iframe() { | |
| global $post, $posts; | |
| $first_img = ''; | |
| ob_start(); | |
| ob_end_clean(); | |
| $output = preg_match_all('/<iframe.+src=[\'"]([^\'"]+)[\'"].*><\/iframe>/i', $post->post_content, $matches); | |
| $first_img = $matches [1] [0]; | |
| return $first_img; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| add_filter ( 'user_can_richedit' , create_function ( '$a' , 'return false;' ) , 50 ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* Call for price filter */ | |
| add_filter('woocommerce_empty_price_html', 'custom_call_for_price'); | |
| function custom_call_for_price() { | |
| return 'Call for price: 1-800-your-mum'; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <head> | |
| <!--Little CSS fade in --> | |
| <style> | |
| .fade-in{ | |
| -webkit-animation: fade-in 2s ease; | |
| -moz-animation: fade-in ease-in-out 2s both; | |
| -ms-animation: fade-in ease-in-out 2s both; | |
| -o-animation: fade-in ease-in-out 2s both; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $(document).ready(function() { | |
| $("body").css("display", "none"); | |
| $("body").fadeIn(500); | |
| $("nav a, a.suave").click(function(event){ | |
| event.preventDefault(); | |
| linkLocation = this.href; | |
| $("body").fadeOut(500, redirectPage); |
OlderNewer