Titan-Framework icon indicating copy to clipboard operation
Titan-Framework copied to clipboard

How to use same color palette options in Customize Section and Theme Options.

Open sagarjadhav opened this issue 11 years ago • 11 comments

I have defined one color palette and I need to use it in both sections i.e. on Customize Section and Theme Options. So if I update color palette from customize section it will also update to theme option settings.

Is this possible?

Thanks

sagarjadhav avatar Jul 30 '14 07:07 sagarjadhav

Yes, because it is updating the same thing.

ghost avatar Jul 30 '14 07:07 ghost

I tried but it gives error: Titan Framework Error: All option IDs must be unique. The id color_palette_option has been used multiple times.

sagarjadhav avatar Jul 30 '14 07:07 sagarjadhav

This was discussed before. The main question is that should we be allowed to use the same IDs multiple times in different areas? My opinion is that you should only use it once since it might confuse users because the same setting is found in different locations. e.g. If theme colors were placed in the theme customizer, then there would be no need to put those same colors inside an admin panel.

What do you think?

bfintal avatar Jul 30 '14 08:07 bfintal

End users are getting to see it more regularly since it is something that is built in to themes using Redux. Normally On my development I will have colour changing on the customiser and not in the Admin panel. But if it is an option, then I guess accommodate it for those that will want it.

ghost avatar Jul 30 '14 08:07 ghost

One huge setback on this is that theme customizer options (theme_mods) are stored differently as admin options (normal options).

bfintal avatar Aug 03 '14 21:08 bfintal

I have learnt the hard way a few days ago. If a theme only uses customiser, then it is difficult to export those settings if you are wanting to migrate just your these finished design.

ghost avatar Aug 06 '14 11:08 ghost

I think its defiantly an advantage to have the possibility to use the same ID in multiple locations.

Users might want to change for example "Heading Colours" within the admin panel. Then at a later date they would rather use the theme customiser to visually modify those same options.

As long as they are tied together and update the same options I cant see how it would be confusing.

andrewmclagan avatar Mar 05 '15 08:03 andrewmclagan

Or at least have a setting so users can disable this check?

andrewmclagan avatar Mar 05 '15 08:03 andrewmclagan

I wish i saw this ticket before i began migration from Redux... I've got lots of options that are present both in admin and customizer for user convenience.

Any progress on this issue?

vladcosorg avatar Mar 11 '15 06:03 vladcosorg

+1 for this. As the Customizer gains popularity, more and more options are displayed there, but also on the admin. Give developers the ability to select where each option is saved.

otonomic avatar Dec 07 '15 22:12 otonomic

+1 for this. Thought about adding a customizer section for my plugin for the visual options, but as it is now that would mean I'll have to remove them from the admin page.

Also, some options in my theme would fit on an admin page as well.

Another reason why this could be a good thing is for those doing a lot of changes on a small tablet or smartphone might have issues with the customizer. I know for a fact that when I'm working from my Windows 10 tablet I have issues with the customizer.

IzaacJ avatar Jun 11 '16 18:06 IzaacJ