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 whatever action your current ping method relies on, typically your comments template | |
remove_action( 'genesis_pings', 'genesis_do_pings' ); | |
// you can use the comments_text filter hook if you don't have genesis | |
add_filter( 'genesis_pings', function( $ifca_pings ) { | |
if ( acme_post_has( 'pings', get_the_ID() ) ) { | |
echo'<div id="internal-links" class="comment-respond entry-pings">'; | |
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
# make sure we're on development branch | |
git checkout development | |
# disconnect local files from remote origin, as in cases where source files are templates (e.g no fork) | |
git remote rm origin | |
# connect local files to intended remote origin we're pushing to | |
git add origin https://github.com/username/new-repo.git | |
# push changes | |
git push -u origin development |
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 | |
/** | |
* Author: Jim Thornton | |
* Return Google CSE search results | |
* | |
*/ | |
add_action( 'genesis_after_header', 'genesis_do_search_title' ); | |
function genesis_do_search_title() { |
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 "Home" link and trailing slash from breadcrumbs in Genesis themes | |
add_filter( 'genesis_home_crumb', 'remove_home_breadcrumb' ); | |
function remove_home_breadcrumb( $crumb ) { | |
$crumb = ''; | |
} |
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 // do not copy this line and make sure to replace "XXXXXXX" with your tag manager ID | |
// add Google Tag Manager after opening body tag on wordpress (part 1) | |
add_action( 'wp_head', 'add_custom_google_tag_manager_1', 1 ); | |
function add_custom_google_tag_manager_1() { | |
// if user is not a logged in admin then load gtm script tag | |
if( !current_user_can('administrator') ) { | |
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 | |
// Open the Work CPT Loop and grab our target post Work Blocks | |
$args = get_post( 845 ); | |
$loop = new WP_Query( $args ); | |
while ( $loop->have_posts() ) : $loop->the_post(); |
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_action('wp_head','tiva_facebook_events_calendar_frontend_assests'); | |
// function from tiva fb events calendar plugin - edited relative file paths, repositioning css | |
function tiva_fbec_js_frontend_assests1() { | |
// JS Files | |
wp_enqueue_script('tiva-facebook-events-calendar-script', network_site_url() . '/wp-content/plugins/tiva-facebook-events-calendar/assets/js/calendar.js', array(), ''); | |
} | |
function tiva_fbec_css_frontend_assests1() { |
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 | |
if( function_exists('acf_add_local_field_group') ): | |
acf_add_local_field_group(array( | |
'key' => 'group_560aae855e3b5', | |
'title' => 'Press', | |
'fields' => array( | |
array( | |
'key' => 'field_560aae8e3338a', |