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
1 | |
2 | |
3 | |
4 | |
5 | |
6 | |
7 | |
8 | |
9 |
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
//* Move Post Title and Post Info from inside Entry Header to Entry Content on Posts page | |
add_action( 'genesis_before_entry', 'reposition_entry_header' ); | |
function reposition_entry_header() { | |
if ( is_home() ) { | |
remove_action( 'genesis_entry_header', 'genesis_entry_header_markup_open', 5 ); | |
remove_action( 'genesis_entry_header', 'genesis_do_post_title' ); | |
remove_action( 'genesis_entry_header', 'genesis_post_info', 12 ); | |
remove_action( 'genesis_entry_header', 'genesis_entry_header_markup_close', 15 ); |
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
// Remove read more - basicWP.com | |
add_filter( 'the_content_more_link', 'child_read_more_link' ); | |
function child_read_more_link() { | |
if(is_archive()) { | |
return ''; | |
} | |
} |
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
//* Modify the length of post excerpts | |
add_filter( 'excerpt_length', 'cambodia_excerpt_length' ); | |
function cambodia_excerpt_length( $length ) { | |
if(is_archive()) { | |
return 50; // pull first 50 words | |
} | |
} |
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 the_post_thumbnail_caption(); ?> |
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
add_filter( 'genesis_pre_load_favicon', 'child_favicon_filter' ); | |
/** | |
* Change the location of the favicon reference. | |
* | |
* @author Greg Rickaby | |
* @since 1.0.0 | |
*/ | |
function child_favicon_filter( $favicon_url ) { | |
return 'http://cdn.yoursite.com/wp-content/themes/child/images/favicon.ico'; |
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
add_filter( 'pre_get_posts', 'sort_by_likes' ); | |
function sort_by_likes( $query ) { | |
if ($query->is_home() && $query->is_main_query() ) { | |
$query->set( 'meta_query', array(array( | |
'key' => '_recommended' | |
))); | |
$query->set('meta_key', '_recommended'); | |
$query->set('orderby', 'meta_value_num'); | |
$query->set('order', 'DESC'); | |
}} |
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
add_filter('genesis_seo_title', 'custom_header_inline_logo', 10, 3); | |
function custom_header_inline_logo($title, $inside, $wrap) { | |
$logo = '<img src="' . get_stylesheet_directory_uri() . '/images/ib-logo_360.png" alt="' . esc_attr(get_bloginfo('name')) . '" title="' . esc_attr(get_bloginfo('name')) . '" width="300" height="60" />'; | |
$inside = sprintf('<a href="%s" title="%s">%s</a>', trailingslashit(home_url()), esc_attr(get_bloginfo('name')), $logo); | |
// Determine which wrapping tags to use - changed is_home to is_front_page to fix Genesis bug | |
$wrap = is_front_page() && 'title' === genesis_get_seo_option('home_h1_on') ? 'h1' : 'p'; |
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
::-webkit-input-placeholder { | |
color: red; | |
} | |
:-moz-placeholder { /* Firefox 18- */ | |
color: red; | |
} | |
::-moz-placeholder { /* Firefox 19+ */ | |
color: red; |
OlderNewer