444 posts
  • Has sold $10,000+ on Envato Market
  • Has collected 50+ items on Envato Market
  • Has referred 1000+ members
  • Helped several times protecting Envato Market against copyright violations
+4 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

814 posts
  • Has referred 1+ members
  • Has sold $10,000+ on Envato Market
  • Has collected 1+ items on Envato Market
  • Contributed a free file of the month
+3 more
rvision_ says

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

Cufon.Refresh();

444 posts
  • Has sold $10,000+ on Envato Market
  • Has collected 50+ items on Envato Market
  • Has referred 1000+ members
  • Helped several times protecting Envato Market against copyright violations
+4 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());

});

444 posts
  • Has sold $10,000+ on Envato Market
  • Has collected 50+ items on Envato Market
  • Has referred 1000+ members
  • Helped several times protecting Envato Market against copyright violations
+4 more
readactor says

solved. thanks.

56 posts
  • Has sold $10,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Has been part of the Envato Community for over 3 years
  • Sells items exclusively on Envato Market
+1 more
ThemeManiac says

explain please…

by
by
by
by
by
by