1

possibly a simple thing to do but I'm not sure how it's done - I want to remove the permalink from a post thumb, in the default twentyeleven theme. Looked through content.php and the other templates and I can't see where to do this - is this something which should be handled as a custom filter in functions.php?

1
  • 1
    You're to have to be more specific about where you want to remove the permalink. In the showcase template? Archive page? Single post pages? Post thumbnails are used in several places on that theme. Nov 16, 2012 at 3:02

1 Answer 1

1

No idea, never used twenty eleven theme. I opened the theme files. Check out showcase.php around Line 104-118.

Should be on line 115 - just remove the anchor wrapping the post thumb,

<a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'twentyeleven' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_post_thumbnail( $thumbnail_size ); ?></a>

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.