Title: update delete new image
Last modified: August 24, 2016

---

# update delete new image

 *  Resolved [Melanie Marie](https://wordpress.org/support/users/melanie-marie/)
 * (@melanie-marie)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/update-delete-new-image/)
 * Hi, I redesigned the detail event-close cross button, put the new image in the
   My Calendar “Images” folder, renamed this in my-calendar-output.php (changed “
   images/new-name.png\”), but everytime there’s a plugin update my own image is
   deleted. How should I do to keep it ? Thanks a lot, regards
 * [https://wordpress.org/plugins/my-calendar/](https://wordpress.org/plugins/my-calendar/)

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

 *  Plugin Author [Joe Dolson](https://wordpress.org/support/users/joedolson/)
 * (@joedolson)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/update-delete-new-image/#post-6006138)
 * Put the image in a custom location, outside of the My Calendar directory, then
   reference it as a background image on the link inside of directly calling it,
   so you can use it from your stylesheet. That’s the only way to handle that, right
   now.
 *  Thread Starter [Melanie Marie](https://wordpress.org/support/users/melanie-marie/)
 * (@melanie-marie)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/update-delete-new-image/#post-6006143)
 * Thank you a lot for your time Joe.
    I’ve changed the location and referenced 
   it as a background image in my own stylesheet, it’s ok it appears, but the original
   image “my-event-close.png” is still there too. Do I have to change something 
   in the my-calendar-output.php file to make it disappear ?
 *  Plugin Author [Joe Dolson](https://wordpress.org/support/users/joedolson/)
 * (@joedolson)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/update-delete-new-image/#post-6006144)
 * You should also be able to use CSS to hide the existing image.
 *  Thread Starter [Melanie Marie](https://wordpress.org/support/users/melanie-marie/)
 * (@melanie-marie)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/update-delete-new-image/#post-6006183)
 * actually I set the background-image in the .close class of my stylesheet, so 
   if I tell this class “display: none”, my own image disappears too. I’m sorry 
   I’m not a css and php wizzard and perhaps I haven’t well understood the sentence“
   then reference it as a background image on the link”… Anyway I don’t want to 
   waste your time, so thank you for your answers though ! regards
 *  Plugin Author [Joe Dolson](https://wordpress.org/support/users/joedolson/)
 * (@joedolson)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/update-delete-new-image/#post-6006193)
 * What you’d want to do is set the background on the anchor with class ‘.close’,
   as you did, but set the hidden element to be the img inside that anchor:
 * `.close img { position: absolute; left: -999em; }`
 * I set the image to be displayed off screen rather than hidden completely so that
   the ‘Close’ alternative text for the image is still available for users with 
   screen readers.
 * You may also need to set dimensions on the .close class, so that your image will
   show up after the contents of the class are moved off screen:
 * `.close { width: 16px; height: 16px; }`
 *  Thread Starter [Melanie Marie](https://wordpress.org/support/users/melanie-marie/)
 * (@melanie-marie)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/update-delete-new-image/#post-6006257)
 * Thank you ever so much for your precious lines, I wouldn’t have found the soluce
   without your help, you’re very kind and generous, have a good day.

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

The topic ‘update delete new image’ is closed to new replies.

 * ![](https://ps.w.org/my-calendar/assets/icon-256x256.png?rev=1097576)
 * [My Calendar - Accessible Event Manager](https://wordpress.org/plugins/my-calendar/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/my-calendar/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/my-calendar/)
 * [Active Topics](https://wordpress.org/support/plugin/my-calendar/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/my-calendar/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/my-calendar/reviews/)

 * 6 replies
 * 2 participants
 * Last reply from: [Melanie Marie](https://wordpress.org/support/users/melanie-marie/)
 * Last activity: [11 years, 1 month ago](https://wordpress.org/support/topic/update-delete-new-image/#post-6006257)
 * Status: resolved