Giter Site home page Giter Site logo

Comments (13)

goodwinpress avatar goodwinpress commented on July 17, 2024 3

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:

02 19 41 13

and after replacement:

01 19 41 13

from titan-framework.

goodwinpress avatar goodwinpress commented on July 17, 2024 1

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.

mathieupreaud avatar mathieupreaud commented on July 17, 2024

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.

andrastudio avatar andrastudio commented on July 17, 2024

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.

andrastudio avatar andrastudio commented on July 17, 2024

Thanks @goodwinpress, works like a charm!

from titan-framework.

goodwinpress avatar goodwinpress commented on July 17, 2024

Glad to do my part.

from titan-framework.

Khoapq avatar Khoapq commented on July 17, 2024

I looks like TitanFramework is no longer maintaining by author?

from titan-framework.

lockstockd avatar lockstockd commented on July 17, 2024

@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:

example-1

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.

ahmadawais avatar ahmadawais commented on July 17, 2024

Same problem here

image

from titan-framework.

ahmadawais avatar ahmadawais commented on July 17, 2024

Guys, my PR with the following new branch fixes the issue #405

from titan-framework.

majick777 avatar majick777 commented on July 17, 2024

@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.

bfintal avatar bfintal commented on July 17, 2024

Fixed by #404 #405 #411

from titan-framework.

lockstockd avatar lockstockd commented on July 17, 2024

Thank you all so much for fixing this!

from titan-framework.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.