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
<div class="share-box twitter"> | |
<span>Auf Twitter teilen</span> | |
<a style="display:none" href="https://twitter.com/share" class="twitter-share-button" data-lang="de" data-dnt="true" data-count="vertical">Twittern</a> | |
</div> | |
<div class="share-box googleplus"> | |
<span>Auf Google+ teilen</span> | |
<div class="g-plusone" data-size="tall"></div> | |
</div> |
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 | |
/** | |
* Teaser Thumbnail | |
* Overrides the thumbnail option set in Genesis > Theme Settings | |
* if on a teaser post | |
* | |
* @param string $opt | |
* @return string | |
*/ |
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( 'init','fsm_thickbox' ); | |
/** | |
* fsm_thickbox function. | |
* | |
* @access public | |
* @param mixed $text | |
* @return void |
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_action( 'genesis_before_post_content', 'genesis_post_info' ); | |
add_action( 'genesis_before_post_content', 'child_post_info' ); | |
/** | |
* Custom Post-Info with Google Rich Snippet support | |
* | |
* @author Greg Rickaby | |
* @since 1.0.0 | |
*/ | |
function child_post_info() { | |
if ( is_page() ) |
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 | |
$odd_or_even = 'even'; | |
$args = array( | |
'cat' => 1, | |
'posts_per_page' => 2, | |
'order' => 'DESC' | |
); | |
$query = new WP_Query( $args ); | |
if ( $query->have_posts() ) : while ( $query->have_posts() ) : $query->the_post(); |
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 | |
$args = array( | |
'post_type' => 'post', | |
'post_status' => 'publish', | |
'order' => 'DESC', | |
'tax_query' => array( | |
array( | |
'taxonomy' => 'post_format', | |
'field' => 'slug', |
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: Oembed as Post Meta | |
Author: Randy Hicks | |
Plugin URI: http://visualcoma.com | |
Author URI: http://visualcoma.com | |
Version: 0.2 | |
Updated: 09.29.12 | |
Description: Adds a custom metabox to specified post_types allowing for youtube and vimeo oembed | |
to be saved as hidden postmeta. Returns visalbe video url and video thumbnail. |
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_after_post','ecowijs_add_widget_area_between_grid' ); | |
/** | |
* The ecowijs_add_widget_area_between_grid function is all about | |
* dAdding Widget Area between Genesis Featured and Genesis Gri | |
* | |
* @access public | |
* @return void | |
*/ |
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_comment_form_args', 'child_comment_form' ); | |
/** | |
* Change "Post Comment" button text. | |
* | |
* @author Greg Rickaby | |
* @since 1.0.0 | |
*/ | |
function child_comment_form($args) { | |
$args = array ( | |
'label_submit' => __( 'Submit', 'genesis' ), |