Titan-Framework
Titan-Framework copied to clipboard
How to use same color palette options in Customize Section and Theme Options.
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
Yes, because it is updating the same thing.
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.
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?
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.
One huge setback on this is that theme customizer options (theme_mods) are stored differently as admin options (normal options).
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.
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.
Or at least have a setting so users can disable this check?
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?
+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.
+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.