Removing Color theme options in Dawn Theme

Solved

Removing Color theme options in Dawn Theme

Leilani_LPC
Shopify Partner
10 0 1

Hello, 

 

I recently decided to completely update the color theme on our website. I now have a ton of different color themes I do not want anymore. I can not find any way to delete them. I have tried to find them in the code but have been unsuccessful. Schemes 1-8 are no longer valid. 

 

Screen Shot 2023-12-08 at 11.46.53 AM.png

Accepted Solutions (2)

HafizFahadMunir
Shopify Partner
15 4 3

This is an accepted solution.

Hi,

In Settings.data file you can find but please be careful while deleting any scheme first make sure the one you want to remove from code not assigned to any section.

Screenshot 2023-12-09 at 12.24.15 AM.png

View solution in original post

New_Dev
Shopify Partner
60 5 2

This is an accepted solution.

Hi,

You can remove the associated json settings from your settings_data.json file under presets > Default > color_schemes

If my feedback was useful, a Like would be greatly appreciated.

If my solution solves the problem, please Mark it as Solution!

Best Regards,
New_Dev

View solution in original post

Replies 6 (6)

HafizFahadMunir
Shopify Partner
15 4 3

This is an accepted solution.

Hi,

In Settings.data file you can find but please be careful while deleting any scheme first make sure the one you want to remove from code not assigned to any section.

Screenshot 2023-12-09 at 12.24.15 AM.png

Leilani_LPC
Shopify Partner
10 0 1

@HafizFahadMunir - Thank you for the screenshot. If I delete the "background 1", "Background 2", "Inverse", "Accent 1" and "Accent 2" is that an issue? Should I transfer the new colors to those pallet names?

New_Dev
Shopify Partner
60 5 2

I recommend you to take a copy of the whole code in the file and save in txt file in your local hard disk. After that you can try edit the code until get the results that you want.

If my feedback was useful, a Like would be greatly appreciated.

If my solution solves the problem, please Mark it as Solution!

Best Regards,
New_Dev
HafizFahadMunir
Shopify Partner
15 4 3

Hi, first please duplicate the current theme from themes list page and click 3 dots and click duplicate then:
- deleting the "background 1", "Background 2", "Inverse", "Accent 1" and "Accent 2"  isn't an issue only if these are not assign in any section already.

for example i added one the 6th one here:
Screenshot 2023-12-09 at 1.04.35 AM.png

 

Then from code i deleted all 1 to 5 
 "background 1", "Background 2", "Inverse", "Accent 1" and "Accent 2"

 

From below To
Screenshot 2023-12-09 at 12.24.15 AM.png
This is Screenshot 2023-12-09 at 1.08.42 AM.pngafter the deletion 

and now i have only 6th schema like this:
Screenshot 2023-12-09 at 1.09.30 AM.png

 

Again please do it on the duplicate theme first and test.

New_Dev
Shopify Partner
60 5 2

This is an accepted solution.

Hi,

You can remove the associated json settings from your settings_data.json file under presets > Default > color_schemes

If my feedback was useful, a Like would be greatly appreciated.

If my solution solves the problem, please Mark it as Solution!

Best Regards,
New_Dev

nathanc122
Visitor
1 0 0

Hello,

 

I am creating a draft theme using Dawn 15.3.0, and I tried to follow the solutions posted here but they don't seem to be accurate for 15.3.0.

 

Is there another way to remove color schemes from Dawn 15.3.0? Thank you in advance!