Skip to content

Instantly share code, notes, and snippets.

@bodiequirk
bodiequirk / wpfc-sermon-themer-shortcodes
Created November 15, 2017 20:46
Sermon Manager Shortcodes for Beaver Themer
// Allows the audio player to be added on single sermons via the [themer_sermon_audio] shortcode
add_shortcode('themer_sermon_audio', function( $atts, $content = null ){
return wpfc_render_audio( get_wpfc_sermon_meta( 'sermon_audio' ) );
});
// Allows the audio player to be added on single sermons via the [themer_sermon_slides] shortcode
add_shortcode('themer_sermon_slides', function( $atts, $content = null ){
return get_wpfc_sermon_meta( 'sermon_video' );
});
@bodiequirk
bodiequirk / search.php
Created March 20, 2017 16:20
Go Ca Rainbow search.php
<?php
/**
* Genesis Framework.
*
* WARNING: This file is part of the core Genesis Framework. DO NOT edit this file under any circumstances.
* Please do all modifications in the form of a child theme.
*
* @package Genesis\Search
* @author StudioPress
* @license GPL-2.0+
@bodiequirk
bodiequirk / functions_with_facet_code
Created February 23, 2017 01:24
Showing my custom functions with FacetWP Code
<?php
// Enable FacetWP Locator
add_filter( 'facetwp_proximity_store_distance', '__return_true' );
$distance = facetwp_get_distance();
if ( false !== $distance ) {
echo round( $distance, 2 );
}
@bodiequirk
bodiequirk / footer-credits.html
Created July 25, 2015 06:05
My Footer Credits
@bodiequirk
bodiequirk / load-sermons-sidebar-for-genesis.php
Last active August 29, 2015 14:25
Load Sermons Sidebar for Sermon Manager in Genesis
function be_blog_sidebar() {
if( 'wpfc_sermon' !== get_post_type() ) {
// not wpfc_sermon post type? bail.
return;
}
//remove the default sidebar
remove_action( 'genesis_sidebar', 'genesis_do_sidebar' );
@bodiequirk
bodiequirk / acf-text-blocks.php
Last active August 29, 2015 14:25
Text Blocks in Dynamik with ACF
<?php
// Add custom content to posts
add_action( 'genesis_entry_content', 'ch_add_text_block');
function ch_add_text_block() {
// check if the flexible content field has rows of data
if( have_rows('content') ):
// loop through the rows of data
@bodiequirk
bodiequirk / simple-social-icons-media-queries.css
Last active October 4, 2017 20:46
Simple Social Icons Media Queries
@media only screen and (max-width: 1140px) {
.header-widget-area .simple-social-icons ul.alignright {
float: none;
display: table;
margin: 0 auto;
}
}
@media only screen and (max-width: 839px) {
.site-header .widget-area {
@bodiequirk
bodiequirk / center-primary-menu.css
Last active August 29, 2015 14:25
Center Primary Menu in Dynamik
/* Centering Primary Menu */
.genesis-nav-menu {
text-align: center;
}
.menu-primary li {
display: inline-block;
float: none;
}
@bodiequirk
bodiequirk / acf-nested-repeater-for-genesis.php
Created July 25, 2015 05:42
ACF Nested Repeater Field to Table for Genesis
<?php
add_action( 'genesis_entry_content', 'rainbow_assemblies_of_ca' );
function rainbow_assemblies_of_ca() {
if ( have_rows('assemblies_of_ca') ):
while ( have_rows('assemblies_of_ca') ) : the_row(); ?>