Forums

How do I exclude images? (5 posts)

  1. meylo
    Member
    Posted 3 years ago #

    s it possible to exclude images from the index.php even though they exist in single posts? I installed WP-Post-Thumbnail plugin and wish to only see the thumbnail, not the large image in the single post...

    Any thoughts?

  2. JLeuze
    Member
    Posted 3 years ago #

    If your images that you want exclude have a class or ID, you could use "display:none" on them in the CSS to hide them.

    The mark up would have to be different on the index or they would get hidden on all pages, you could add a class or id to the posts on the index and hide all the images in the posts, and then override that to show the thumbnails if need be,

    Easiest way would be to just use excerpts instead of the full content on the index!

  3. riledhel
    Member
    Posted 3 years ago #

    I like the "use excerpts" idea more ;) More simple, more elegant.

  4. meylo
    Member
    Posted 3 years ago #

    Unless I'm overlooking something excerpts dont seem to support thumbnails. I created a new css entry and used display:none but that kills all images used... :(

  5. JLeuze
    Member
    Posted 3 years ago #

    The solution will really depend on the specifics of your site. Can you post a link? What theme are you using?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.