WordPress.org

Ready to get started?Download WordPress

Forums

Custom CSS to hide certain images? (12 posts)

  1. swingprofessors
    Member
    Posted 2 years ago #

    I am looking for custom css that will hide all images in my main posts that are exactly 150px x 150px. IS this possible?

  2. theotherlebowski
    Member
    Posted 2 years ago #

    why not just not put them in the post if you don't want anyone to see them?

  3. swingprofessors
    Member
    Posted 2 years ago #

    They are autoblogged

  4. swingprofessors
    Member
    Posted 2 years ago #

  5. theotherlebowski
    Member
    Posted 2 years ago #

    id look for an RSS plugin that lets you do stuff like that.

  6. swingprofessors
    Member
    Posted 2 years ago #

    Believe me, I've searched high and low.

  7. swingprofessors
    Member
    Posted 2 years ago #

    Should this be in a different thread? Can anyone help me?

  8. wp_sam
    Member
    Posted 2 years ago #

    Try using display: none in CSS ID. That will help I guess.

  9. s_ha_dum
    Member
    Posted 2 years ago #

    I am looking for custom css that will hide all images in my main posts that are exactly 150px x 150px. IS this possible?

    Not unless your 150x150 images have ids or classes that identify them. CSS can't do complicated logic like checking image size. Probably, you will need to do this at the point of import-- that is, read the RSS feed and remove the images before they are displayed.

  10. swingprofessors
    Member
    Posted 2 years ago #

    The class is called "attachment-thumbnail" so would it look something like this in my custom css?:

    img[class="attachment-thumbnail"] {
    display: none;
    }

    This did not work by the way.

  11. s_ha_dum
    Member
    Posted 2 years ago #

    No.

    .attachment-thumbnail {
    display:none;
    }
  12. wp_sam
    Member
    Posted 2 years ago #

    correct @ s_ha_dum

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags