485 posts
  • Author Level 5
  • Collector Level 3
  • Affiliate Level 7
  • Super Copyright Ninja
+3 more
readactor
says

Hello,

I have a problem with a style switcher using a color picker (front-end) for a wp theme. The new colors picked are apply just to the normal text (what not use cufon).

for instance:

$(‘body’).css(‘color’, $(’#text_color’).val());

I try to use all cufon classes, like .cufon-active, .cufon, .cufon-canvas, .cufon-active etc, with no chance.

I miss something? From theme admin with same body class the cufon text is changing its color, but from frontend demo color switcher…no.

Have some ideas?

thanks

815 posts
  • Affiliate Level 1
  • Author Level 5
  • Collector Level 1
  • Freebie
+3 more
rvision_
says

But you’ll have to be sure that new CSS is loaded before calling it:

Cufon.Refresh();

485 posts
  • Author Level 5
  • Collector Level 3
  • Affiliate Level 7
  • Super Copyright Ninja
+3 more
readactor
says

isnt’t working or i am not placing where it should be. the new css styles are apply without to load the page.

$(’#mydemoformsavebutton’).click(function() {

$(‘body’).css(‘color’, $(’#text_color’).val());

});

485 posts
  • Author Level 5
  • Collector Level 3
  • Affiliate Level 7
  • Super Copyright Ninja
+3 more
readactor
says

solved. thanks.

56 posts
  • Author Level 5
  • Collector Level 2
  • 4 Years of Membership
  • Exclusive Author
ThemeManiac
says

explain please…

by
by
by
by
by
by