Skip to content

Instantly share code, notes, and snippets.

@billerickson
Created February 1, 2013 18:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save billerickson/4693055 to your computer and use it in GitHub Desktop.
Save billerickson/4693055 to your computer and use it in GitHub Desktop.
<?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' =&gt; 'html', 'size' =&gt; genesis_option('image_size'), 'attr' =&gt; array( 'class' =&gt; '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.
&lt;?php
remove_action(&#039;genesis_post_title&#039;, &#039;genesis_do_post_title&#039;);
add_action(&#039;genesis_post_title&#039;, &#039;custom_do_post_title&#039;);
function custom_do_post_title() {
$title = sprintf( &#039;%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