# How to replace SCSS vars in Themes -\> Uploads?

**URL:** https://meta.discourse.org/t/how-to-replace-scss-vars-in-themes-uploads/84699
**Category:** Bug
**Created:** [4월 6, 2018, 9:11오전 UTC](https://meta.discourse.org/t/how-to-replace-scss-vars-in-themes-uploads/84699 "2018-04-06T09:11:19Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![ryanerwin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ryanerwin/32/94589_2.png) [@ryanerwin](https://meta.discourse.org/u/ryanerwin)
#### Post date: [4월 6, 2018, 9:11오전 UTC](https://meta.discourse.org/t/how-to-replace-scss-vars-in-themes-uploads/84699/1 "2018-04-06T09:11:19Z")

</div>

I’ve been customizing my theme in Admin → Themes… Lots of CSS/HTML changes.

I also have a few Themes → Uploads:

- $Background-Tile-White: [WhiteCarbon50x50x2.png]
- $Background-Tile-Black: [BlackCarbon50x50x2.png]

I’ve deleted “Background-Tile-Black” and “Background-Tile-White” and replaced them with new images, but I still see the old images are actually delivered. I’ve tried using another browser, clearing the cache, and restarting, so I don’t think it’s a browser caching issue.

By contrast, regular CSS changes happen very fast…

Anyone else had problems replacing resources in Themes → Uploads?

When I inspect the element on the page, the OLD resource that I already deleted that was connected to $Background-Tile-White is pulled in rather than the new one…

---

<div class="post-metadata">

### Author: ![Osama](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/osama/32/98013_2.png) [@Osama](https://meta.discourse.org/u/Osama)
#### Post date: [4월 6, 2018, 2:00오후 UTC](https://meta.discourse.org/t/how-to-replace-scss-vars-in-themes-uploads/84699/2 "2018-04-06T14:00:43Z")

</div>

I believe that’s a cache issue on the server side. I remember I ran into something similar to this and my workaround was to re-save my SCSS by adding a new line character and save it. Have you tried that?

---

<div class="post-metadata">

### Author: ![Hossein\_Amerkashi](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hossein_amerkashi/32/89092_2.png) [@Hossein\_Amerkashi](https://meta.discourse.org/u/Hossein_Amerkashi)
#### Post date: [5월 11, 2018, 9:12오후 UTC](https://meta.discourse.org/t/how-to-replace-scss-vars-in-themes-uploads/84699/3 "2018-05-11T21:12:19Z")

</div>

@Osama I’m having this issue too:  
[Trust-Level Avatar Flair - #56](https://meta.discourse.org/t/trust-level-avatar-flair/82656/56)

What do you mean by adding new line character? Should i just add \r to end of old SCSS and save?

---

<div class="post-metadata">

### Author: ![Osama](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/osama/32/98013_2.png) [@Osama](https://meta.discourse.org/u/Osama)
#### Post date: [5월 11, 2018, 9:19오후 UTC](https://meta.discourse.org/t/how-to-replace-scss-vars-in-themes-uploads/84699/4 "2018-05-11T21:19:29Z")

</div>

I could’ve said that better. What I mean is change up your CSS a bit (something as simple as adding or removing a space or a new line will do) so that it becomes “different” from what it was and save your CSS.

---

<div class="post-metadata">

### Author: ![John\_Waltrip1](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/john_waltrip1/32/98972_2.png) [@John\_Waltrip1](https://meta.discourse.org/u/John_Waltrip1)
#### Post date: [6월 5, 2018, 9:40오후 UTC](https://meta.discourse.org/t/how-to-replace-scss-vars-in-themes-uploads/84699/5 "2018-06-05T21:40:16Z")

</div>

I’ve experienced the same issue; updating the image for a trust level seems to have no effect. However, I’ve noticed if I change the flair position it works, unless I revert back to the original position it was in when I added the image. I’ve tried altering CSS and saving, but no dice.

---

<div class="post-metadata">

### Author: ![Osama](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/osama/32/98013_2.png) [@Osama](https://meta.discourse.org/u/Osama)
#### Post date: [6월 13, 2018, 12:55오후 UTC](https://meta.discourse.org/t/how-to-replace-scss-vars-in-themes-uploads/84699/7 "2018-06-13T12:55:47Z")

</div>

Fixed in:

[https://github.com/discourse/discourse/pull/5992](https://github.com/discourse/discourse/pull/5992)

Thanks for reporting @ryanerwin ☀

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [6월 15, 2018, 3:12오전 UTC](https://meta.discourse.org/t/how-to-replace-scss-vars-in-themes-uploads/84699/8 "2018-06-15T03:12:23Z")

</div>


