This file contains 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 | |
if ( !function_exists( 'fb_browser_warning' ) ) { | |
function fb_browser_warning() { | |
?> | |
<style> | |
.fb_browser_warning { | |
position: relative; | |
background: #3B5998; | |
padding: 20px 20px 20px 80px; |
This file contains 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($) { | |
$(window).on('scroll', function() { | |
if(jQuery('#main-header').hasClass("et-fixed-header")) { | |
jQuery('#logo').attr('src','/wp-content/uploads/logo-alt.png'); | |
} | |
else { | |
jQuery('#logo').attr('src','/wp-content/uploads/logo.png'); | |
} | |
}); | |
})( jQuery ); |
This file contains 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 my_et_add_viewport_meta(){ | |
echo '<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=2.0, user-scalable=1" />'; | |
} | |
add_action( 'wp_head', 'my_et_add_viewport_meta' , 11 ); | |
function my_et_add_viewport_meta_disable() { | |
remove_action( 'wp_head', 'et_add_viewport_meta' ); | |
} | |
add_action( 'after_setup_theme', 'my_et_add_viewport_meta_disabled', 50 ); |
This file contains 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
/**********************************************/ | |
/* | |
/* | |
/* Crate -- Theme for Chrome DevTools | |
/* Last Update :: September 2013 | |
/* | |
/* based on: | |
/* mnml by Michael P. Pfeiffer | |
/* Based on a Gist by Ben Truyman. Further attr: | |
/* https://gist.github.com/3040634 |