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 | |
//* Do NOT copy this line or above | |
add_filter( 'body_class', 'ck_custom_body_class' ); | |
function ck_custom_body_class( $classes ) { | |
$classes[] = 'custom-class'; | |
return $classes; | |
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
function add_featured_img( $item ) { | |
$img = get_the_post_thumbnail(); | |
return str_replace( '<li>', '<li>' . $img, $item ); | |
} | |
add_filter( 'TEC_VenueOrganizer_List.list.item', 'add_featured_img' ); |
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 | |
/** | |
* Plugin Name: RT Autoautoptimize | |
* Plugin URI: http://www.this-play.nl | |
* Description: Automatically configures default settings for the Autoptimize plugin across a WordPress network | |
* Version: 0.9 | |
* Author: Roy Tanck | |
* Author URI: http://www.this-play.nl | |
* License: GPL2 | |
*/ |
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
// Connect the WordPress post editor to your custom stylesheet | |
function my_theme_add_editor_styles() { | |
add_editor_style( 'custom-editor-style.css' ); | |
} | |
add_action( 'admin_init', 'my_theme_add_editor_styles' ); |
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 | |
function add_featured_image_in_rss() { | |
if ( function_exists( 'get_the_image' ) && ( $featured_image = get_the_image('format=array&echo=0') ) ) { | |
$featured_image[0] = $featured_image['url']; | |
} elseif ( function_exists( 'has_post_thumbnail' ) and has_post_thumbnail() ) { | |
$featured_image = wp_get_attachment_image_src( get_post_thumbnail_id(), 'post-thumbnail' ); | |
} elseif ( function_exists( 'get_post_thumbnail_src' ) ) { | |
$featured_image = get_post_thumbnail_src(); |
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 | |
//* Auto post image | |
add_action( 'genesis_entry_header', 'advance_post_featured_image', 15 ); | |
function advance_post_featured_image() { | |
if ( is_archive() ) | |
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
<?php | |
if ( ! defined( 'ABSPATH' ) ) die('-1'); | |
/* | |
* WDG-customized version of the Events Calendar Pro mini calendar widget. | |
* Changes are noted inline. | |
* Replacing class name: Tribe__Events__Pro__Mini_CalendarWidget | |
*/ | |
class MultisiteTribeEventsProMiniCalendarWidget extends WP_Widget { | |
function __construct() { |
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 | |
//* Remove breadcrumbs | |
remove_action( 'genesis_before_loop', 'genesis_do_breadcrumbs' ); | |
//* Force full width content | |
add_filter( 'genesis_pre_get_option_site_layout', '__genesis_return_full_width_content' ); | |
//* Remove entry meta in entry header | |
remove_action( 'genesis_entry_header', 'genesis_post_info', 12 ); |
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
/** | |
* The Events Calendar - Include Genesis Simple Sharing Above Single Events Content | |
* | |
*/ | |
add_filter( 'tribe_events_single_event_before_the_content', 'tribe_genesis_event_share' ); | |
function tribe_genesis_event_share( $post_info ) { | |
if ( is_singular('tribe_events') && function_exists( 'genesis_share_get_icon_output' ) ) { | |
global $Genesis_Simple_Share; | |
$share = genesis_share_get_icon_output( 'entry-meta', $Genesis_Simple_Share->icons ); |