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 // Don't include this when copying code | |
add_filter( 'genesis_pre_load_favicon', 'cb_pre_load_favicon' ); | |
/** | |
* Simple favicon override to specify your favicon's location. | |
* | |
* @since 2.0.0 | |
*/ | |
function cb_pre_load_favicon() { |
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() { | |
var offset = 500; | |
var duration = 1000; | |
$(window).scroll(function() { | |
if ($(this).scrollTop() > offset) { | |
$('.back-to-top').fadeIn(duration); | |
} else { | |
$('.back-to-top').fadeOut(duration); | |
} | |
}); |
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 | |
// pulled from https://github.com/billerickson/BE-Genesis-Child | |
// reposition inpost metabox | |
remove_action( 'admin_menu', 'genesis_add_inpost_layout_box' ); | |
add_action( 'admin_menu', 'be_add_inpost_layout_box' ); | |
function be_add_inpost_layout_box() { | |
if ( ! current_theme_supports( 'genesis-inpost-layouts' ) ) | |
return; |
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
// this in page-most-viewed.php | |
$args=array( | |
'meta_key' => 'be_stats', | |
'orderby' => 'meta_value_num', | |
'posts_per_page' => -1, | |
'post_type' => 'photo_galleries', | |
'order' => 'asc', | |
'paged' => $paged, | |
); |
NewerOlder