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 | |
/** | |
* Hide editor on specific pages. | |
* | |
*/ | |
add_action( 'admin_init', 'hide_editor' ); | |
function hide_editor() { | |
// Get the Post ID. |
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
define( 'CHILD_THEME_VERSION', filemtime( get_stylesheet_directory() . '/style.css' ) ); |
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
jQuery(document).ready(function($) { | |
$("span.gfield_required").html(function(index, text) { | |
return text.replace("*", "Required"); | |
}); | |
}); |
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 | |
add_filter( 'genesis_attr_content', 'yoast_schema_empty', 20 ); | |
add_filter( 'genesis_attr_entry', 'yoast_schema_event', 20 ); | |
add_filter( 'genesis_attr_entry-title', 'yoast_itemprop_name', 20 ); | |
add_filter( 'genesis_attr_entry-content', 'yoast_itemprop_description', 20 ); | |
add_filter( 'genesis_post_title_output', 'yoast_title_link_schema', 20 ); | |
/** | |
* We'll use the post info output to add more meta data about the event. |
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 include the opening php tag | |
add_action( 'genesis_before', 'sk_replace_menu_in_primary' ); | |
/** | |
* Conditionally replace Custom Menu in Primary Navigation. | |
* | |
* @author Sridhar Katakam | |
* @link http://sridharkatakam.com/conditionally-replace-navigation-menu-genesis/ | |
*/ |
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 | |
//* Custom loop WITH pagination | |
remove_action( 'genesis_loop', 'genesis_do_loop' ); | |
add_action( 'genesis_loop', 'bhl_do_resident_query' ); | |
function bhl_do_resident_query() { | |
global $paged; | |
global $query_args; |
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 | |
/** | |
* Plugin Name: Cron Test | |
* Plugin URI: https://gist.github.com/A5hleyRich/6de1712ce5f46662c8ba | |
* Description: WordPress cron and email test. | |
* Author: Ashley Rich | |
* Version: 1.0 | |
* Author URI: http://ashleyrich.com | |
*/ |
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 | |
/** | |
* Set default Genesis images | |
* | |
* @since 1.0.0 | |
* @param string $output | |
* @param array $args | |
* @return array | |
*/ | |
function ja_default_genesis_image( $output, $args ) { |
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 | |
/** | |
* Disable visual TinyMCE editor for specifc page/post | |
* | |
* @since 1.0.0 | |
*/ | |
function ja_disable_fancy_editor( $can ) { | |
global $post; | |
if ( 3441 == $post->ID ) { |
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 | |
// Tell Yoast Google Analytics plugin not to be at the top of the WP admin menu | |
add_filter( 'wpga_menu_on_top', '__return_false' ); | |
// Disable additional WPSEO columns from the admin | |
add_filter( 'wpseo_use_page_analysis', '__return_false' ); | |
/** | |
* Set WPSEO metabox to low so custom fields can appear above it |
OlderNewer