Created
February 1, 2013 18:18
-
-
Save billerickson/4693055 to your computer and use it in GitHub Desktop.
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 link from the post featured image */ | |
remove_action('genesis_post_content', 'genesis_do_post_image'); | |
add_action('genesis_post_content', 'child_do_post_image', 5); | |
function child_do_post_image() { | |
if ( is_archive() ) { | |
genesis_image( array( 'format' => 'html', 'size' => genesis_option('image_size'), 'attr' => array( 'class' => 'alignleft post-image' ) ) ); | |
} | |
} | |
I created a new archive.php file and put this code in it: | |
You can try creating a file named archive.php in your child theme with the following content. | |
<?php | |
remove_action('genesis_post_title', 'genesis_do_post_title'); | |
add_action('genesis_post_title', 'custom_do_post_title'); | |
function custom_do_post_title() { | |
$title = sprintf( '%s', get_permalink(), the_title_attribute('echo=0'), apply_filters( 'genesis_post_title_text', get_the_title() ) ); | |
echo apply_filters('genesis_post_title_output', $title) . "\n"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment