Support » Plugin: Video Thumbnails » 2 images for the same post

Viewing 15 replies - 1 through 15 (of 16 total)
  • how can i undo the video thumbs ?

    I removed line #18 of TwentyTwelve content.php
    <?php the_post_thumbnail(); ?>

    It has corrected it. However, I don’t have any posts that are just using a featured image instead of a video thumbnail.

    Anyone confirm this resolves it?

    hi
    thx for the reply. i’m using suffusion theme on my site. i tried to edit but my php knowledge is reduced. any hint ?

    Technically I’m not giving you really a good fix…it’s more of a work around. Not familiar with that theme…plus unless you’ve setup a child theme if your theme is updated the tweak will be lost. They’ve gotta have a content.php file or they re-named it. Use Notepad ++ and search for thumbnail, should be similar to string I posted above.

    i’ve been looking and it’s quite different but i can copy the php file if it´s ok for you

    the code you gave me is different but i can copy the content.php and paste it here if that’s ok for you

    Sure

    <?php
    /**
    * Default post format applied to all types of posts.
    *
    * @since 3.8.4
    * @package Suffusion
    * @subpackage Formats
    */
    global $post, $suf_show_content_thumbnail, $suffusion_cpt_post_id;
    if (isset($suffusion_cpt_post_id)) {
    $cpt_image = suffusion_get_post_meta($suffusion_cpt_post_id, ‘suf_cpt_show_full_thumb’, true);
    }

    $show_thumbnail = isset($suffusion_cpt_post_id) ? $cpt_image : $suf_show_content_thumbnail != ‘hide’;
    global $suf_excerpt_thumbnail_alignment, $suf_excerpt_thumbnail_size;
    if (has_post_thumbnail($post->ID) && $show_thumbnail) {

    //Could use suffusion_get_image(), but the theme uploader recommends use of the_post_thumbnail at least once in the theme…
    //echo suffusion_get_image(array(‘no-link’ => true));
    if ($suf_excerpt_thumbnail_size == ‘custom’) { $thumbnail = get_the_post_thumbnail(null, ‘excerpt-thumbnail’);

    }
    else {
    $thumbnail = get_the_post_thumbnail(null, $suf_excerpt_thumbnail_size);
    }
    echo “<div class=’$suf_excerpt_thumbnail_alignment-thumbnail’>” . $thumbnail . “</div>”;
    }

    $continue = __(‘Continue reading »’, ‘suffusion’);
    the_content($continue);

    Currently in the process of learning php…

    That being said..I’d go and ask for assistance in removing the featured image in suffusion.

    If I had to GUESS, I’d remove this and see what happens –
    if (has_post_thumbnail($post->ID) && $show_thumbnail)

    Make sure you backup the php file so that you can re-upload it via FTP if it crashes and burns.

    ok. seeing what happens…

    nothing happened !

    Remove all of this –

    if (has_post_thumbnail($post->ID) && $show_thumbnail) {
    
    //Could use suffusion_get_image(), but the theme uploader recommends use of the_post_thumbnail at least once in the theme...
    //echo suffusion_get_image(array('no-link' => true));
    if ($suf_excerpt_thumbnail_size == 'custom') { $thumbnail = get_the_post_thumbnail(null, 'excerpt-thumbnail');
    
    }
    else {
    $thumbnail = get_the_post_thumbnail(null, $suf_excerpt_thumbnail_size);
    }
    echo "<div class='$suf_excerpt_thumbnail_alignment-thumbnail'>" . $thumbnail . "</div>";
    }

    See what happens.

    still the 2 images

    Sorry 🙁

    I’d kick it to your theme support page on how to delete the featured thumbnail or wait for this developer to official let us know.

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘2 images for the same post’ is closed to new replies.