I would like to add a Theme Options page to a WordPress website I’m developing for a customer. I found a tutorial written by Konstantin Kovshenin and his tutorial is called Using the Color Picker in Your WordPress Theme Options and this tutorial can be found on Theme.fm.
I have followed the tutorial and understand a bit of the code but this is my first time playing with WordPress’s backend. Going through the tutorial, I have copied the code from the website and have placed the code into a separate file called theme-options.php, this is then loaded via functions.php.
At one stage in the tutorial, you can simply enter a value into the text box and save it successfully but the aim of the tutorial was to use the Farbtastic Color Picker that comes with WordPress. A modification was needed in the tutorial further one and I applied it and now can’t get it to work.
When you click into the box the Color Picker is activated for the user to select a color, if I select the outer circle the text box goes black and no hex code or color is shown, but if I select a color from the inner circle instead a color is entered but no hex code.
If there is no value being entered into this box then there is nothing to be saved. The tutorial is nicely written and easy to follow but my level of experience at the moment is not that good and I can’t see the problem.
I have followed another tutorial and basically downloaded the source code but I prefer Konstantin Kovshenin version.
So has anyone followed this tutorial and came across the same problems and if so how did you fix it?
- The topic ‘Farbtastic Color Picker Problems’ is closed to new replies.