Forums

Custom CSS to hide certain images? (12 posts)

  1. swingprofessors
    Member
    Posted 9 months 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 9 months ago #

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

  3. swingprofessors
    Member
    Posted 9 months ago #

    They are autoblogged

  4. swingprofessors
    Member
    Posted 9 months ago #

  5. theotherlebowski
    Member
    Posted 9 months ago #

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

  6. swingprofessors
    Member
    Posted 9 months ago #

    Believe me, I've searched high and low.

  7. swingprofessors
    Member
    Posted 9 months ago #

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

  8. wp_sam
    Member
    Posted 9 months ago #

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

  9. s_ha_dum
    Member
    Posted 9 months 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 9 months 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 9 months ago #

    No.

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

    correct @ s_ha_dum

Reply

You must log in to post.

About this Topic

Tags