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
body { | |
font-family: 'system-ui', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; | |
} | |
/* Full Width Page | |
-------------------------------------------- */ | |
.site-inner.full { | |
max-width: none; | |
padding: 0; |
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
$("footer.infinite a").click(function(e){ | |
loadArticle(); | |
e.preventDefault(); | |
}); | |
function loadArticle() { | |
$("footer.infinite a").html("..."); | |
var offset = $("footer.infinite a").data("count"); | |
var num = parseInt(offset, 10); | |
var cat = $("footer.infinite a").data('cat'); |
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
$("a.load-more").click(function(e){ | |
loadArticle(); | |
e.preventDefault(); | |
}); | |
function loadArticle() { | |
$("footer.infinite a").html("..."); | |
var offset = $("a.load-more").data("count"); | |
var num = parseInt(offset, 10); | |
var cat = $("a.load-more").data('cat'); |
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_after', 'cb_mobile_bar', 999); | |
function cb_mobile_bar() { ?> | |
<div class="mobile-bar"> | |
<div class="mobile-bar-triggers"> | |
<div class="mobile-bar-trigger" data-type="contactEmail"> | |
<a href="mailto:[email protected]"> | |
<span class="mobile-bar-trigger-icon"></span> | |
<span class="mobile-bar-trigger-label">Email</span> | |
</a> |
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> |
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
<? | |
//* 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
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
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
<?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 } |
NewerOlder