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, | |
); |
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
$(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 // 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
<?php | |
add_action( 'genesis_entry_header', 'cb_advertisement_before_content', 20 ); | |
function cb_advertisement_before_content() { ?> | |
<div class="entry-advertisement alignleft"> | |
<img src="https://placeholdit.imgix.net/~text?txtsize=33&txt=300×250&w=300&h=250" alt="Please replace me" width="300" height="250" /> | |
</div> | |
<?php } |
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_action('wp_head', 'chillybin_custom_og_image'); | |
function chillybin_custom_og_image() { | |
if (get_field('youtube_video_id')) { ?> | |
<meta property="og:image" content="http://img.youtube.com/vi/<? echo get_field('youtube_video_id'); ?>/mqdefault.jpg" /> | |
<?php } | |
} |
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_action('genesis_after_post', 'ad_after_first_post'); | |
function ad_after_first_post() { | |
global $wp_query; | |
if( !is_singular && 0 == $wp_query->current_post ) { ?> | |
<div id='div-gpt-ad-1442795039305-2'> | |
<script type='text/javascript'> | |
googletag.cmd.push(function() { googletag.display('div-gpt-ad-1442795039305-2'); }); | |
</script> | |
</div> | |
<?php } |
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
<? | |
//* Remove Page Title | |
add_action( 'get_header', 'remove_titles_all_single_pages' ); | |
function remove_titles_all_single_pages() { | |
if ( is_singular('page') ) { | |
remove_action( 'genesis_before_loop', 'genesis_do_breadcrumbs' ); | |
remove_action( 'genesis_entry_header', 'genesis_do_post_title' ); | |
} if (is_singular('post')) { | |
remove_action( 'genesis_before_loop', 'genesis_do_breadcrumbs' ); |
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 class="home-section promo"> | |
<div class="wrap"> | |
<div class="row gutter-40 middle-xs"> | |
<div class="col col-xs-12 col-sm-4 widget rwc-countdown"> | |
<div class="row bottom-xs-10 center-xs"> | |
<div class="col cd-head col-xs-12"> | |
<h4>20 SEPTEMBER - 2 NOVEMBER 2019</h4> | |
</div> | |
</div> | |
<div class="row cd-date gutter-5 bottom-xs-10 center-xs"> |
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 | |
//* Customise footer | |
remove_action( 'genesis_footer', 'genesis_do_footer', 10 ); | |
add_action( 'genesis_footer', 'trw_do_footer', 8 ); | |
function trw_do_footer() { ?> | |
<div class="footer-credits"> | |
<div class="row copyright"> | |
<div class="col-xs-12 col-md-6 center-xs text-xs-center start-md text-ms-left"> | |
<p>© <? echo date( 'Y' ); ?> The Recovering Workaholic, All Rights Reserved.</p> | |
</div> |
OlderNewer