Comments (13)
HI andrastudio
there is a path:
/js/min/wp-color-picker-alpha-min.js
delete all code in this file and replace with a code from https://github.com/kallookoo/wp-color-picker-alpha-plugin/blob/master/wp-color-picker-alpha.js
and clean the cache in browser options.
In my case - before replacement:
and after replacement:
from titan-framework.
I looks like TitanFramework is no longer maintaining by author?
Who knows?
TF is free, may be people from Gambith has no enough motivation to further development.
from titan-framework.
Same problem for me, all my Color Picker options crush after actualizing. In which folder of Titan Framework do you have to replace the file wp-color-picker-alpha? I don't see any PHP file with that name.
from titan-framework.
I noticed there are two js files
js/wp-color-picker-alpha.js
js/dev/wp-color-picker-alpha.js
Already replaced both files and nothing changed, not sure if we have to update the wp-color-picker-alpha.php file as well. I don't see any file named wp-color-picker-alpha.php in TF package
from titan-framework.
Thanks @goodwinpress, works like a charm!
from titan-framework.
Glad to do my part.
from titan-framework.
I looks like TitanFramework is no longer maintaining by author?
from titan-framework.
@goodwinpress your fix has worked great thank you so much for this!
I'm now seeing something strange with the font type setting where it's now showing two color selectors:
My code:
$headerTab->createOption( array(
'name' => __('Header Font', 'my-plugin'),
'id' => 'header_font',
'type' => 'font',
'classname' => 'header-istext',
'default' => array( 'font-size' => '24px', 'color' => '#ffffff' ),
'show_font_weight' => false,
'show_font_style' => false,
'show_line_height' => false,
'show_letter_spacing' => false,
'show_text_transform' => false,
'show_font_variant' => false,
'show_text_shadow' => false,
'show_preview' => false
) );
In the screenshot where the color option is black (#333) the only reference to this color in my code is the default value for another color option within the same settings tab which has the following code:
$headerTab->createOption( array(
'name' => __('Custom Header Color', 'my-plugin'),
'id' => 'custom_header_color',
'type' => 'color',
'classname' => 'custom_bg',
'desc' => '',
'default' => '#333'
) );
Seems that for some reason the color option for custom header color is also appearing within the header font setting. Any ideas at all?
from titan-framework.
Same problem here
from titan-framework.
Guys, my PR with the following new branch fixes the issue #405
from titan-framework.
@lockstockd have the same with you for the font color selectors (though it probably should be a separate issue)... here's what I did to fix it...
in /lib/class-option-font.php, wrap both color AND text shadow color inputs in a styled div:
<div style="float:right; margin-left:10px; vertical-align:middle;">
<input class='tf-font-sel-{shadow-}color' ......
</div>
Then I added this just after the "Initialize color pickers" javascript:
$('.tf-font .tf-font-sel-shadow-color').removeClass('tf-font-sel-shadow-color')
.parent().addClass('tf-font-sel-shadow-color');
which fixes the show/hide code for the text shadow color input. :-)
I probably should do a pull request - seems a bit hacky but works.
from titan-framework.
from titan-framework.
Thank you all so much for fixing this!
from titan-framework.
Related Issues (20)
- Dead? HOT 5
- create multiple option with same id HOT 1
- Date option default expects timestamp, docs state Y-m-d formatted string HOT 3
- undefined js function for number option HOT 2
- New problem with Color Picker and NextGen Gallery HOT 5
- Customizer Container, Font Field - Two Color Pickers?
- CSS ID contains inappropriate characters
- Docs and main website down HOT 1
- Quick Edit not working
- $titan->setOption() not saving data to database HOT 1
- Suggestion add more Filters in output file url
- Wrong check in the CSS Generation function
- Typo in docs
- Is this framework dead?
- Is Titan Dead? HOT 20
- PHP 7.4 issue HOT 1
- Documentation site is down, Siteground changed IP address
- [WARNINGS] Theme check for Wordpress.org HOT 1
- wpColorPickerL10n not defined in WP 5.5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from titan-framework.