• I’m trying to change the link of the thumbnail for the default thematic_content latest posts loop.
    What I want is the thumb to open in lightbox at the original size.
    I’m trying with variations of the following code, but does’n seem to ovverride it.

    function custom_content($content) {
    if ( strtolower($thematic_content_length) == ‘excerpt’) {
    if ( apply_filters( ‘thematic_post_thumbs’, TRUE) ) {
    if ( has_post_thumbnail() ) {
    $post = ‘‘ . get_the_post_thumbnail(get_the_ID(), $size, $attr) . ‘‘ . $post;
    }
    }
    }
    }
    add_filter(‘thematic_content’, ‘custom_content’);

    Any ideas?

    Thank you

Viewing 1 replies (of 1 total)
  • Thread Starter gepapadi

    (@gepapadi)

    Sorry,

    function custom_content($content) {
    if ( strtolower($thematic_content_length) == 'excerpt') {
    if ( apply_filters( 'thematic_post_thumbs', TRUE) ) {
    if ( has_post_thumbnail() ) {
    $post = '<a href="' . get_the_post_thumbnail(get_the_ID(), $size, $attr) . '" title="Permalink to ' . get_the_title() . '">' . get_the_post_thumbnail(get_the_ID(), $size, $attr) . '</a>' . $post;
    }
    }
    }
    }
    add_filter('thematic_content', 'custom_content');
Viewing 1 replies (of 1 total)
  • The topic ‘thematic_content change thumbnail link’ is closed to new replies.