• Resolved ephemeralbunka

    (@ephemeralbunka)


    I am using a theme Twenty Twelve and I installed a plugin Recent Posts Widget Extended to show the links to recent posts WITH THUMBNAIL in the sidebar/widget area.

    However, after activating this plugin, I realized, that the thumbnail image appeared not only in the widget created by plugin, but also at the top of the posts themselve – and it looks terribly. How can I remove the thumbnail image from the post only and keep it in the list created by plugin?

    Example: http://www.tjzdemyslice.cz/fotbalove-zapasy-jaro-2016/

    I found few similar topics here already and tried sth but didn´t work (seems that for every theme is probably a different solution in the code?)

    Thanks for help!

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hi,

    Go to theme files and edit content-page.php files and find code

    <?php the_post_thumbnail(); ?>

    and replace it with this

    <?php // the_post_thumbnail(); ?>

    Save file and good to go.

    Thread Starter ephemeralbunka

    (@ephemeralbunka)

    wpressdr – Thanks for answer!
    Unfortunatelly – did not work 🙁

    I assume that it could be possibly because content-page refers to pages, not posts? And I need to hide thumbnails in posts.

    Would be glad for any other ideas!

    You could try these:

    1. Make the changes wpressdr suggested, BUT in content.php (NOT in content-page.php)

    However, editing a theme’s file is not suggested as any updates will overwrite your changes and you will see the issue again after updating the theme.
    This is, unless you are using a child theme or a custom theme.

    2. Alternatively, Use this CSS:
    .entry-header .attachment-post-thumbnail {
    display:none;
    }

    Thread Starter ephemeralbunka

    (@ephemeralbunka)

    shariqkhan2012:
    So, the CSS edit worked!
    Great, thanks!

    Thread Starter ephemeralbunka

    (@ephemeralbunka)

    OK, one more question – when I change the theme (to Inventor), I see the thumbnail image is there again, so for each template, the thumbnail image shall be removed differently, right? I cannot figure out how to remove it in case of Inventor.
    Thanks for help once again.

    Well, in case of CSS edits, pretty much every theme uses its own styling.
    So yes, you would have to use different CSS for every theme.

    The sure shot solution that would work for every theme would be to use the first method that I described. But it would be advisable to make the changes in child theme, because if make the changes in the original theme itself, updating the theme will overwrite your changes.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘how to remove thumbnail image from posts’ is closed to new replies.