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 | |
// Add featured image on single post | |
add_action( 'genesis_entry_content', 'themeprefix_featured_image', 1 ); | |
function themeprefix_featured_image() { | |
$add_single_image = get_theme_mod( 'themeprefix_single_image_setting', true ); //sets the customizer setting to a variable | |
$image = genesis_get_image( array( // more options here -> genesis/lib/functions/image.php | |
'format' => 'html', | |
'size' => 'large',// add in your image size large, medium or thumbnail - custom size => array(300, 450, true), | |
'context' => '', | |
'attr' => array ( 'class' => 'aligncenter' ), // set a default WP image 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 //<= remove this | |
/* Code to Display Featured Image on top of the post */ | |
add_action( 'genesis_before_entry', 'featured_post_image', 8 ); | |
function featured_post_image() { | |
if ( ! is_singular( 'post' ) ) return; | |
the_post_thumbnail('post-image'); | |
} |
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 THE <?php ABOVE BEFORE PASTING INTO functions.php | |
//* Customize Entry Meta Filed Under and Tagged Under | |
add_filter( 'genesis_post_meta', 'ig_entry_meta_footer' ); | |
function ig_entry_meta_footer( $post_meta ) { | |
$post_meta = '[post_categories before="Category: "] [post_tags before="Tags: "]'; | |
return $post_meta; | |
} |
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
.entry-content .search-form-submit { | |
font-family: Muli; | |
font-size: 13px | |
} |
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 | |
//table of nine <9> with explanation | |
$table=9; //starting int value | |
$num=1; //num | |
while ($table<=90){ //until num | |
echo "9 × ".$num." is equal to ".$table."." . "\n"; //output format | |
$table+=9; //value to be addded in each interval | |
$num++; //num value add for chronological order | |
} |
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 the opening <?php tag! | |
function featured_post_image() { | |
if ( ! is_singular( 'post' ) ) return; | |
the_post_thumbnail('post-image'); | |
} | |
//wpRumors - Display featured image below title on the single post in Genesis | |
add_action( 'genesis_entry_content', 'featured_post_image', 8 ); |
OlderNewer