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('the_content_feed', 'wpsitesdotnet_post_thumbnail_rss'); | |
add_filter('the_excerpt_rss', 'wpsitesdotnet_post_thumbnail_rss'); | |
function wpsitesdotnet_post_thumbnail_rss($content) { | |
global $post; | |
if ( has_post_thumbnail( $post->ID ) ){ | |
$content = '' . get_the_post_thumbnail( $post->ID, 'featured-img', array( 'style' => 'align:centre; margin-bottom:40px; height: 300px; width: 600px;' ) ) . '' . $content; | |
} | |
return $content; | |
} |
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
/** | |
* Enqueue scripts for smooth scrolling | |
*/ | |
add_action( 'wp_enqueue_scripts', 'sk_smooth_scroll' ); | |
function sk_smooth_scroll() { | |
wp_enqueue_script( 'scrollTo', get_stylesheet_directory_uri() . '/js/jquery.scrollTo.min.js', array( 'jquery' ), '1.4.5-beta', true ); | |
wp_enqueue_script( 'localScroll', get_stylesheet_directory_uri() . '/js/jquery.localScroll.min.js', array( 'scrollTo' ), '1.2.8b', true ); | |
wp_enqueue_script( 'scrollto-init', get_stylesheet_directory_uri() . '/js/scrollto-init.js', array( 'localScroll' ), '', true ); |
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 #sb-site to .site-container div | |
add_filter( 'genesis_attr_site-container', 'custom_genesis_attributes_entry' ); | |
/** | |
* Add attributes for entry element. | |
* | |
* @since 2.0.0 | |
* | |
* @param array $attributes Existing attributes. | |
* | |
* @return array Amended attributes. |
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
@font-face { | |
font-family: 'ssi-fontello'; | |
src: url('../font/fontello.eot?78492063'); | |
src: url('../font/fontello.eot?78492063#iefix') format('embedded-opentype'), | |
url('../font/fontello.woff?78492063') format('woff'), | |
url('../font/fontello.ttf?78492063') format('truetype'), | |
url('../font/fontello.svg?78492063#fontello') format('svg'); | |
font-weight: normal; | |
font-style: normal; | |
} |
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 custom communities post type archive template | |
*/ | |
//* Force full width content layout | |
add_filter( 'genesis_pre_get_option_site_layout', '__genesis_return_full_width_content' ); | |
//* Add even/odd post class | |
add_filter( 'post_class', 'minimum_even_odd_portfolio_post_class' ); |
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 //* Mind this opening PHP tag | |
/** | |
* Movie Archive Template | |
* | |
* Note that the hooks and genesis_get_image() function used in this file are specific to the Genesis Framework | |
* | |
* @author Ren Ventura <EngageWP.com> | |
* @link http://www.engagewp.com/nested-loops-custom-wordpress-queries | |
*/ |
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
/** | |
* Breaks the posts into 4 columns | |
* @link http://www.billerickson.net/code/grid-loop-using-post-class | |
*/ | |
add_filter( 'post_class', 'tsm_archive_post_class' ); | |
function tsm_archive_post_class( $classes ) { | |
global $wp_query; | |
// Keeps columns out of secondary loops ie: Genesis Featured Post widgets | |
if( ! $wp_query->is_main_query() ) { | |
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 //<~ Add me in | |
add_action( 'genesis_before_content', 'ng_home_page_widgets' ); | |
/* | |
* Add the home widgets in place | |
*/ | |
function ng_home_page_widgets() { | |
genesis_widget_area ('content-1', array( |
OlderNewer