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 opening tag | |
add_filter('body_class', 'string_body_class'); | |
function string_body_class( $classes ) { | |
if ( isset( $_GET['color'] ) ) : | |
$classes[] = 'theme-prefix-' . sanitize_html_class( $_GET['color'] ); | |
endif; | |
return $classes; | |
} |
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 this line | |
/** | |
* This function removes all the inline style markup from posts/pages on save. | |
* | |
* @todo Remove this code prior to site launch | |
*/ | |
add_filter( 'wp_insert_post_data' , 'filter_post_data' , '99', 2 ); | |
function filter_post_data( $data , $postarr ) { |
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 this line | |
/** | |
* Remove Genesis child theme style sheet | |
* @uses genesis_meta <genesis/lib/css/load-styles.php> | |
*/ | |
remove_action( 'genesis_meta', 'genesis_load_stylesheet' ); | |
/** | |
* Enqueue Genesis child theme style sheet at higher priority |
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 this line | |
add_filter( 'comment_form_defaults', 'cd_pre_comment_text' ); | |
/** | |
* Change the text output that appears before the comment form | |
* Note: Logged in user will not see this text. | |
* | |
* @author Carrie Dils <http://www.carriedils.com> | |
* @uses comment_notes_before <http://codex.wordpress.org/Function_Reference/comment_form> | |
* |
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 this line | |
function disable_self_ping( &$links ) { | |
foreach ( $links as $l => $link ) | |
if ( 0 === strpos( $link, get_option( 'home' ) ) ) | |
unset($links[$l]); | |
} | |
add_action( 'pre_ping', 'disable_self_ping' ); |
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_action( 'genesis_before_loop', 'prefix_full_content_specific_cpt' ); | |
/** | |
* Filter the output of specific CPT archives so that they display the full | |
* content regarldess of what's selected in the Genesis theme options panel. | |
* | |
* @author FAT Media <http://youneedfat.com>, Carrie Dils <http://www.carriedils.com> | |
* @copyright Copyright (c) 2013, FAT Media, LLC | |
* @license GPL-2.0+ | |
* @uses is_post_type_archive <http://codex.wordpress.org/Function_Reference/is_post_type_archive> |
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
wp_enqueue_style( 'utility-font-awesome', '//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css', array(), '4.0.3' ); |
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 this line | |
//** Add additional style to site header | |
add_filter('genesis_seo_title', 'wap_site_title' ); | |
function wap_site_title($title) { | |
$custom_title = '<span class="custom-title">WA</span>Estate'; | |
$inside = sprintf( '<a href="%s" title="%s">%s</a>', trailingslashit( home_url() ), esc_attr( get_bloginfo( 'name' ) ), $custom_title ); | |
$title = '<h1 class="site-title" itemprop="headline">'. $inside .'</h1>'; | |
return $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 | |
/** | |
* This file adds the Landing template to the eleven40 Pro Theme. | |
* | |
* @author StudioPress | |
* @package Generate | |
* @subpackage Customizations | |
*/ | |
/* |
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 opening tag | |
function add_custom_gravatar( $avatar_defaults ) { | |
$myavatar = get_stylesheet_directory_uri() . '/images/custom-gravatar.jpg'; | |
$avatar_defaults[$myavatar] = "Custom Gravatar"; | |
return $avatar_defaults; | |
} | |
add_filter( 'avatar_defaults', 'add_custom_gravatar' ); |