WordPress.org

Ready to get started?Download WordPress

Forums

Thematic
thematic_content change thumbnail link (2 posts)

  1. gepapadi
    Member
    Posted 3 years ago #

    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

  2. gepapadi
    Member
    Posted 3 years ago #

    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');

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic

Tags