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($){ | |
//-- Observer | |
var o = $({}); | |
$.each({ | |
trigger: 'publish', | |
on: 'subscribe', | |
off: 'unsubscribe' | |
}, function(key, val){ | |
jQuery[val] = function(){ |
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($){ | |
$.fn.slideFadeToggle = function(speed, easing, callback){ | |
return this.animate({opacity: 'toggle', height: 'toggle'}, speed, easing, callback); | |
}; | |
})(jQuery); | |
//$(document).on('click', '.btn', function(){ |
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
<!-- Mobile Viewport --> | |
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale= 1.0"> | |
<!-- IE Meta --> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<!-- Favicon --> | |
<link rel="shortcut icon" href="path/to/favicon.ico"> | |
<!-- Conditional Comments for IE --> |
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
::-webkit-input-placeholder {color:#c0392b;} | |
::-moz-placeholder {color:#c0392b;}/* Firefox 19+ */ | |
:-moz-placeholder {color:#c0392b;}/* Firefox 18- */ | |
:-ms-input-placeholder {color:#c0392b;} |
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 | |
//* Add a Widget After Header | |
genesis_register_sidebar( array( | |
'id' => 'widget-id', | |
'name' => __( 'Widget Name', 'genesis' ), | |
'description' => __( 'This is the Widget After Header', 'genesis' ), | |
) ); | |
add_action( 'genesis_after_header', 'add_new_widget' ); | |
function add_new_widget() { | |
{ |
NewerOlder