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 | |
//* 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() { | |
{ |
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
::-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 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 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 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 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 | |
// Unregister other site layouts | |
genesis_unregister_layout( 'full-width-content' ); | |
genesis_unregister_layout( 'content-sidebar' ); | |
genesis_unregister_layout( 'sidebar-content' ); | |
genesis_unregister_layout( 'content-sidebar-sidebar' ); | |
genesis_unregister_layout( 'sidebar-sidebar-content' ); | |
genesis_unregister_layout( 'sidebar-content-sidebar' ); |
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 | |
// Remove post info | |
remove_action('genesis_before_post_content', 'genesis_post_info'); | |
?> |
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 debounce(func, wait, immediate) { | |
var timeout; | |
return function() { | |
var context = this, args = arguments; | |
var later = function() { | |
timeout = null; | |
if (!immediate) func.apply(context, args); | |
}; | |
var callNow = immediate && !timeout; | |
clearTimeout(timeout); |
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 | |
//* Remove .site-inner | |
add_filter( 'genesis_markup_site-inner', '__return_null' ); | |
add_filter( 'genesis_markup_content-sidebar-wrap_output', '__return_false' ); | |
add_filter( 'genesis_markup_content', '__return_null' ); | |
?> |
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 | |
// Remove | |
remove_action( 'genesis_meta', 'genesis_load_stylesheet' ); | |
// Replace with custom | |
add_filter( 'stylesheet_uri', 'custom_replace_default_style_sheet', 10, 2 ); | |
function custom_replace_default_style_sheet() { | |
return CHILD_URL . '/green-pack.css'; | |
} |
OlderNewer